Fixed error messages in commands
This commit is contained in:
@@ -108,7 +108,6 @@ void Server::readClient(int fd)
|
||||
}
|
||||
|
||||
clients[fd].appendBuffer(buf);
|
||||
std::cout << "fd=" << fd << " dice: " << buf;
|
||||
|
||||
std::string &clientBuf = clients[fd].getBuffer();
|
||||
size_t pos;
|
||||
@@ -155,6 +154,4 @@ void Server::parseCommand(int fd, std::string line)
|
||||
cmd_nick(fd, ss);
|
||||
else if (command == "USER")
|
||||
cmd_user(fd, ss);
|
||||
else
|
||||
std::cout << "Comando desconocido: " << command << "\n";
|
||||
}
|
||||
@@ -25,13 +25,6 @@
|
||||
# include <map>
|
||||
# include <sstream>
|
||||
|
||||
|
||||
const std::string ERR_PASSWORD = "ERROR :Password incorrect\r\n";
|
||||
const std::string ERR_NONICK = "ERROR :No nick given\r\n";
|
||||
const std::string ERR_NOPASS = "ERROR :Authenticate first\r\n";
|
||||
const std::string ERR_REREGISTER = "462 :You may not reregister\r\n";
|
||||
const std::string ERR_NOUSER = "ERROR :No username given\r\n";
|
||||
|
||||
class Server
|
||||
{
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user