| 
    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" 
   15         _example[0] = 
"part <canal>{,<canal>}";
 
   30             std::vector<std::string> _ch_params = 
split(p[0], 
",");
 
   32             for (
size_t i = 0; i < _ch_params.size(); i++)
 
   34                 if (_ch_params[i][0] != 
'#')
 
   41             for (
size_t i = 0; i < _ch_params.size(); i++)
 
   68         std::vector<std::string> _ch_params = 
split(p[0], 
",");
 
   70         for (
size_t i = 0; i < _ch_params.size(); i++)
 
   74             std::vector<Client *> related_channels_clients = channel->
getClients();
 
   75             for (
size_t j = 0; j < related_channels_clients.size(); j++)
 
   77                 related_channels_clients[j]->message(
 
  
 
void execute()
Definition: Part.hpp:64
 
Definition: Channel.hpp:26
 
std::string & getName(void)
Definition: Channel.hpp:82
 
bool validate(void)
Definition: Part.hpp:19
 
#define ERR_NOSUCHCHANNEL(servername, nick, channel)
Definition: Replies.hpp:107
 
std::string _description
Definition: Command.hpp:12
 
std::string _username
Definition: Client.hpp:27
 
std::string _name
Definition: Command.hpp:11
 
Definition: Command.hpp:7
 
std::string getCmd(void) const
Definition: message.cpp:74
 
void message(char const *message)
Definition: client.cpp:15
 
#define ERR_BADCHANMASK(servername, nick)
Definition: Replies.hpp:151
 
std::string _host
Definition: Client.hpp:29
 
Message * _message
Definition: Command.hpp:21
 
std::vector< std::string > split(const std::string &str, const std::string &delimiters)
Definition: functions.cpp:37
 
#define ERR_NEEDMOREPARAMS(servername, nick, command)
Definition: Replies.hpp:131
 
std::map< size_t, std::string > _example
Definition: Command.hpp:16
 
#define ERR_NOTONCHANNEL(servername, nick, channel)
Definition: Replies.hpp:126
 
void removeClientFromChannel(Client *client)
Definition: Channel.hpp:365
 
Part()
Definition: Part.hpp:10
 
std::vector< Client * > getClients(void) const
Definition: Channel.hpp:172
 
bool joined(Client *client)
Definition: Channel.hpp:183
 
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
 
Client * _sender
Definition: Command.hpp:19
 
std::string _nick
Definition: Client.hpp:26
 
std::string _servername
Definition: Client.hpp:30
 
Server * _server
Definition: Command.hpp:20