| 
    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" 
   29         else if (p.size() > 1)
 
   39             if (it->second->_nick == name)
 
   53         if (std::count_if(name.begin(), name.end(), ::isalnum) != 
static_cast<long>(name.length())) 
 
   67         for (
size_t i = 0; i < related_clients.size(); i++)
 
   69             related_clients[i]->message(std::string(
":" + 
_sender->
_nick + 
"!" +
 
  
 
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
 
void message(char const *message)
Definition: client.cpp:15
 
std::vector< Client * > getRelatedClients(Client *client)
Definition: Server.hpp:93
 
std::map< size_t, Client * > _clients
Definition: Server.hpp:48
 
#define ERR_NONICKNAMEGIVEN(servername)
Definition: Replies.hpp:118
 
void execute()
Definition: Nick.hpp:61
 
bool _needs_auth
Definition: Command.hpp:15
 
#define ERR_ERRONEUSNICKNAME(servername, nick)
Definition: Replies.hpp:120
 
Message * _message
Definition: Command.hpp:21
 
#define ERR_NICKNAMEINUSE(servername, nick)
Definition: Replies.hpp:122
 
std::map< size_t, std::string > _example
Definition: Command.hpp:16
 
void setNick(std::string const &nick)
Definition: Client.hpp:188
 
bool validate(void)
Definition: Nick.hpp:20
 
std::map< size_t, std::string > getParams(void) const
Definition: message.cpp:79
 
std::string _usage
Definition: Command.hpp:13
 
Client * _sender
Definition: Command.hpp:19
 
Nick()
Definition: Nick.hpp:10
 
std::string _nick
Definition: Client.hpp:26
 
std::string _servername
Definition: Client.hpp:30
 
Server * _server
Definition: Command.hpp:20