Improving commands and added quit
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/05/15 15:35:16 by aortigos #+# #+# */
|
||||
/* Updated: 2026/05/15 23:09:57 by aortigos ### ########.fr */
|
||||
/* Updated: 2026/05/16 11:28:47 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -36,6 +36,6 @@ void Server::privmsg_cmd(User &client, std::istringstream &ss)
|
||||
if (message[0] == ' ')
|
||||
message = message.substr(1);
|
||||
|
||||
std::string msg = ":" + client.getNick() + " PRIVMSG " + channel + " :" + message + "\r\n";
|
||||
std::string msg = ":" + client.getNick() + "!" + client.getUsername() + "@localhost PRIVMSG " + channel + " :" + message + "\r\n";
|
||||
return (it->second.broadcast(msg, clients_, client.getFd()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user