/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* pass.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: aortigos > args; if (args.empty()) return (client.send(":" SERVER_NAME " 461 * PASS :Not enough parameters\r\n")); if (client.isAuthenticated()) return (client.send(":" SERVER_NAME " 462 " + client.getNick() + " :Unauthorized command (already registered)\r\n")); if (this->password_ == args) client.setAuthenticated(true); else client.send(":" SERVER_NAME " 464 * :Password incorrect\r\n"); }