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


公開メンバ関数 | |
| TopicCommand (Server *server) | |
| Constructs a TopicCommand object. | |
| void | execute (Client *client, const std::vector< std::string > &args) |
| Executes the TOPIC 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 TOPIC command.
This command is used to change or view the topic of a channel. Channel operators can set the topic, and if the channel mode '+t' is set, only operators can change the topic.
TopicCommand.hpp の 20 行目に定義があります。
| TopicCommand::TopicCommand | ( | Server * | server | ) |
Constructs a TopicCommand object.
| server | A pointer to the Server instance. |
TopicCommand.cpp の 14 行目に定義があります。
|
virtual |
Executes the TOPIC 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. args[1] (optional) can be the new topic to set (prefixed with ':'). If args[1] is empty, the current topic is queried. |
ICommandを実装しています。
TopicCommand.cpp の 16 行目に定義があります。