|
ft_irc 1.0
|
Implements the KICK command. [詳解]
#include <KickCommand.hpp>


公開メンバ関数 | |
| KickCommand (Server *server) | |
| Constructs a KickCommand object. | |
| void | execute (Client *client, const std::vector< std::string > &args) |
| Executes the KICK command. | |
基底クラス ICommand に属する継承公開メンバ関数 | |
| ICommand (Server *server) | |
| Constructs an ICommand object, associating it with a server instance. | |
| virtual | ~ICommand () |
| Virtual destructor for ICommand, ensuring proper cleanup of derived classes. | |
その他の継承メンバ | |
基底クラス ICommand に属する継承限定公開変数類 | |
| Server * | _server |
| Pointer to the IRC server instance. | |
Implements the KICK command.
This command allows a channel operator to forcibly remove a user from a channel. It handles error conditions such as non-existent channel, non-operator sender, or target user not in the channel.
KickCommand.hpp の 20 行目に定義があります。
| KickCommand::KickCommand | ( | Server * | server | ) |
Constructs a KickCommand object.
| server | A pointer to the Server instance. |
KickCommand.cpp の 17 行目に定義があります。
|
virtual |
Executes the KICK command.
| client | A pointer to the Client (operator) that issued the command. |
| args | A vector of strings containing the command arguments. args[0] should be the channel name. args[1] should be a comma-separated list of nicknames to kick. args[2] (optional) should be the kick message (reason). |
ICommandを実装しています。
KickCommand.cpp の 19 行目に定義があります。