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


公開メンバ関数 | |
| JoinCommand (Server *server) | |
| Constructs a JoinCommand object. | |
| void | execute (Client *client, const std::vector< std::string > &args) |
| Executes the JOIN 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 JOIN command.
This command allows a client to join a specific channel. If the channel does not exist, it is created. It handles channel modes such as invite-only (+i), key-protected (+k), and user limit (+l). It also handles the special case of "JOIN 0" to leave all channels.
JoinCommand.hpp の 21 行目に定義があります。
| JoinCommand::JoinCommand | ( | Server * | server | ) |
Constructs a JoinCommand object.
| server | A pointer to the Server instance. |
JoinCommand.cpp の 15 行目に定義があります。
|
virtual |
Executes the JOIN command.
| client | A pointer to the Client that issued the command. |
| args | A vector of strings containing the command arguments. args[0] should be a comma-separated list of channel names. args[1] (optional) should be a comma-separated list of keys for the channels. |
ICommandを実装しています。
JoinCommand.cpp の 17 行目に定義があります。