From a09fc23bd12bf84d49aeac459746bdc266ad6c26 Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Mon, 29 Jan 2024 20:17:01 +0100 Subject: [PATCH] caca boudin qui pue --- srcs/channel.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/srcs/channel.cpp b/srcs/channel.cpp index a7f07e7..4b265ad 100644 --- a/srcs/channel.cpp +++ b/srcs/channel.cpp @@ -6,7 +6,7 @@ /* By: vvaas +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/01/21 10:36:21 by maldavid #+# #+# */ -/* Updated: 2024/01/29 20:10:28 by vvaas ### ########.fr */ +/* Updated: 2024/01/29 20:16:47 by maldavid ### ########.fr */ /* */ /******************************************************************************/ @@ -198,14 +198,14 @@ namespace irc return; if(_topic.empty()) { - if (!broadcast) - return (client->sendCode(":yipirc " RPL_NOTOPIC, client->getNickName() + " " + _name, "no topic is set")); - for (client_it it = _clients.begin(); it != _clients.end(); ++ it) + if(!broadcast) + return client->sendCode(":yipirc " RPL_NOTOPIC, client->getNickName() + " " + _name, "no topic is set"); + for(client_it it = _clients.begin(); it != _clients.end(); ++ it) const_cast&>(*it)->sendCode(":yipirc " RPL_NOTOPIC, client->getNickName() + " " + _name, "no topic is set"); } - if (!broadcast) - return (client->sendCode(":yipirc " RPL_TOPIC, client->getNickName() + " " + _name, _topic)); - for (client_it it = _clients.begin(); it != _clients.end(); ++ it) + if(!broadcast) + return client->sendCode(":yipirc " RPL_TOPIC, client->getNickName() + " " + _name, _topic); + for(client_it it = _clients.begin(); it != _clients.end(); ++ it) const_cast&>(*it)->sendCode(":yipirc " RPL_TOPIC, client->getNickName() + " " + _name, _topic); }