IRC SERVER
The goal of this project is to make you write your own IRC server.
|
Go to the documentation of this file.
5 #include "../Command.hpp"
14 _usage =
"list [<canales>]";
26 std::vector<std::string> _ch_params =
split(p[0],
",");
28 for (
size_t i = 0; i < _ch_params.size(); i++)
42 for (
size_t i = 0; i < channels.size(); i++)
48 itoa(channels[i]->getClients().size()), channels[i]->getTopic()));
void execute()
Definition: List.hpp:20
Definition: Channel.hpp:26
std::string & getName(void)
Definition: Channel.hpp:82
#define RPL_LISTEND(servername, nick)
Definition: Replies.hpp:63
std::string _description
Definition: Command.hpp:12
std::string & getTopic(void)
Definition: Channel.hpp:87
const std::string getNick(void) const
Definition: Client.hpp:142
std::string _name
Definition: Command.hpp:11
Definition: Command.hpp:7
@ CHANNEL_MODE_SECRET
Definition: Channel.hpp:9
void message(char const *message)
Definition: client.cpp:15
std::vector< Channel * > getChannels(void)
Definition: Server.hpp:212
Message * _message
Definition: Command.hpp:21
List()
Definition: List.hpp:10
std::vector< std::string > split(const std::string &str, const std::string &delimiters)
Definition: functions.cpp:37
std::map< size_t, std::string > _example
Definition: Command.hpp:16
#define RPL_LISTSTART(servername, nick)
Definition: Replies.hpp:59
std::vector< Client * > getClients(void) const
Definition: Channel.hpp:172
std::string itoa(int a)
Definition: functions.cpp:15
std::map< size_t, std::string > getParams(void) const
Definition: message.cpp:79
Channel * getChannel(std::string &name)
Definition: Server.hpp:202
std::string _usage
Definition: Command.hpp:13
#define RPL_LIST(servername, nick, channel, users, topic)
Definition: Replies.hpp:61
Client * _sender
Definition: Command.hpp:19
std::string _servername
Definition: Client.hpp:30
Server * _server
Definition: Command.hpp:20