/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* pass.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: aortigos > args; if (args == this->password) { clients[fd].setAuthenticated(true); std::string msg = "You have been authenticated!\r\n"; send(fd, msg.c_str(), msg.size(), 0); } else { send(fd, ERR_PASSWORD.c_str(), ERR_PASSWORD.size(), 0); removeClient(fd); } }