visual fix

This commit is contained in:
aortigos
2026-05-25 09:26:03 +02:00
parent e5e08d4cd0
commit 91533c0b9f

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */ /* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2026/05/15 15:35:16 by aortigos #+# #+# */ /* Created: 2026/05/15 15:35:16 by aortigos #+# #+# */
/* Updated: 2026/05/25 09:21:29 by aortigos ### ########.fr */ /* Updated: 2026/05/25 09:25:49 by aortigos ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@@ -46,10 +46,8 @@ void Server::privmsg_cmd(User &client, std::istringstream &ss)
for(std::map<int, User>::iterator it = clients_.begin(); it != clients_.end(); it++) for(std::map<int, User>::iterator it = clients_.begin(); it != clients_.end(); it++)
{ {
if (it->second.getNick() == channel) if (it->second.getNick() == channel)
{
return (it->second.send(":" + client.getNick() + "!" + client.getUsername() + "@localhost PRIVMSG " + channel + " :" + message + "\r\n")); return (it->second.send(":" + client.getNick() + "!" + client.getUsername() + "@localhost PRIVMSG " + channel + " :" + message + "\r\n"));
}
} }
return (client.send(":" SERVER_NAME " 401 " + client.getNick() + " " + channel + " :No such nick\r\n")); client.send(":" SERVER_NAME " 401 " + client.getNick() + " " + channel + " :No such nick\r\n");
} }
} }