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


公開メンバ関数 | |
| ModeCommand (Server *server) | |
| Constructs a ModeCommand object. | |
| void | execute (Client *client, const std::vector< std::string > &args) |
| Executes the MODE 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 MODE command.
This command is used to set, change, or query the modes of a channel or a user. For channels, it handles modes such as operator status (+o), topic protection (+t), no external messages (+n), key (+k), user limit (+l), and invite-only (+i).
ModeCommand.hpp の 21 行目に定義があります。
| ModeCommand::ModeCommand | ( | Server * | server | ) |
Constructs a ModeCommand object.
| server | A pointer to the Server instance. |
ModeCommand.cpp の 15 行目に定義があります。
|
virtual |
Executes the MODE command.
| client | A pointer to the Client that issued the command. |
| args | A vector of strings containing the command arguments. args[0] should be the channel name or user nickname. args[1] (optional) should be the mode string (e.g., "+i", "-o"). args[2...] (optional) are mode parameters (e.g., nickname for +o, key for +k, limit for +l). |
ICommandを実装しています。
ModeCommand.cpp の 17 行目に定義があります。