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


公開メンバ関数 | |
| NickCommand (Server *server) | |
| Constructs a NickCommand object. | |
| void | execute (Client *client, const std::vector< std::string > &args) |
| Executes the NICK 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 NICK command.
This command is used to give a client a nickname or change their existing one. It handles nickname validation and ensures uniqueness. It also plays a role in the client registration process.
NickCommand.hpp の 20 行目に定義があります。
| NickCommand::NickCommand | ( | Server * | server | ) |
Constructs a NickCommand object.
| server | A pointer to the Server instance. |
NickCommand.cpp の 15 行目に定義があります。
|
virtual |
Executes the NICK 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 new nickname. |
ICommandを実装しています。
NickCommand.cpp の 52 行目に定義があります。