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


公開メンバ関数 | |
| PrivmsgCommand (Server *server) | |
| Constructs a PrivmsgCommand object. | |
| void | execute (Client *client, const std::vector< std::string > &args) |
| Executes the PRIVMSG 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 PRIVMSG command.
This command is used to send private messages between users or to channels. It handles error conditions such as no recipient, no text, non-existent target, or inability to send to a channel due to modes. This command utilizes the handleMessage utility function for common messaging logic.
PrivmsgCommand.hpp の 21 行目に定義があります。
| PrivmsgCommand::PrivmsgCommand | ( | Server * | server | ) |
Constructs a PrivmsgCommand object.
| server | A pointer to the Server instance. |
PrivmsgCommand.cpp の 11 行目に定義があります。
|
virtual |
Executes the PRIVMSG 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 recipient (nickname or channel name). args[1] should be the message to send. |
ICommandを実装しています。
PrivmsgCommand.cpp の 13 行目に定義があります。