/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* nick.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: aortigos > args; if(!clients[fd].isAuthenticated()) { send(fd, ERR_NOPASS.c_str(), ERR_NOPASS.size(), 0); return ; } if (!args.empty()) { clients[fd].setNick(args); std::string msg = "Your nick has been updated!\r\n"; send(fd, msg.c_str(), msg.size(), 0); } else { send(fd, ERR_NONICK.c_str(), ERR_NONICK.size(), 0); } }