ft_irc 1.0
読み取り中…
検索中…
一致する文字列を見つけられません
ModeCommand クラス

Implements the MODE command. [詳解]

#include <ModeCommand.hpp>

ModeCommand の継承関係図
Inheritance graph
ModeCommand 連携図
Collaboration graph

公開メンバ関数

 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.hpp21 行目に定義があります。

構築子と解体子

◆ ModeCommand()

ModeCommand::ModeCommand ( Server server)

Constructs a ModeCommand object.

引数
serverA pointer to the Server instance.

ModeCommand.cpp15 行目に定義があります。

関数詳解

◆ execute()

void ModeCommand::execute ( Client client,
const std::vector< std::string > &  args 
)
virtual

Executes the MODE command.

引数
clientA pointer to the Client that issued the command.
argsA 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.cpp17 行目に定義があります。


このクラス詳解は次のファイルから抽出されました: