Nick fixed
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/04/17 11:56:55 by aortigos #+# #+# */
|
||||
/* Updated: 2026/04/17 12:45:36 by aortigos ### ########.fr */
|
||||
/* Updated: 2026/04/17 14:19:29 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -47,13 +47,15 @@ void Server::cmd_nick(int fd, std::istringstream &ss)
|
||||
}
|
||||
}
|
||||
|
||||
clients[fd].setNick(args);
|
||||
|
||||
std::string msg = ":"
|
||||
+ clients[fd].getNick()
|
||||
+ " NICK "
|
||||
+ args
|
||||
+ "\r\n";
|
||||
|
||||
clients[fd].setNick(args);
|
||||
|
||||
send(fd, msg.c_str(), msg.size(), 0);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user