caca boudin qui pue

This commit is contained in:
Kbz-8
2024-01-29 20:17:01 +01:00
parent ce9e6d7b02
commit a09fc23bd1

View File

@@ -6,7 +6,7 @@
/* By: vvaas <vvaas@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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 */
/* */
/******************************************************************************/
@@ -199,12 +199,12 @@ namespace irc
if(_topic.empty())
{
if(!broadcast)
return (client->sendCode(":yipirc " RPL_NOTOPIC, client->getNickName() + " " + _name, "no topic is set"));
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<unstd::SharedPtr<irc::Client>&>(*it)->sendCode(":yipirc " RPL_NOTOPIC, client->getNickName() + " " + _name, "no topic is set");
}
if(!broadcast)
return (client->sendCode(":yipirc " RPL_TOPIC, client->getNickName() + " " + _name, _topic));
return client->sendCode(":yipirc " RPL_TOPIC, client->getNickName() + " " + _name, _topic);
for(client_it it = _clients.begin(); it != _clients.end(); ++ it)
const_cast<unstd::SharedPtr<irc::Client>&>(*it)->sendCode(":yipirc " RPL_TOPIC, client->getNickName() + " " + _name, _topic);
}