ft_irc 1.0
読み取り中…
検索中…
一致する文字列を見つけられません
NickCommand.hpp
[詳解]
1
7#ifndef NICK_COMMAND_HPP
8#define NICK_COMMAND_HPP
9
10#include "ICommand.hpp"
11
20class NickCommand : public ICommand {
21 private:
27 bool isValidNickname(const std::string &nick) const;
28
33 void registerClient(Client *client);
34
35 public:
40 NickCommand(Server *server);
41
48 void execute(Client *client, const std::vector<std::string> &args);
49};
50
51#endif
Interface for all IRC commands.
Represents an IRC client connected to the server.
Definition Client.hpp:25
Abstract base class (interface) for all IRC commands.
Definition ICommand.hpp:26
Implements the NICK command.
void execute(Client *client, const std::vector< std::string > &args)
Executes the NICK command.
Implements the core IRC server functionality as a Singleton.
Definition Server.hpp:49