caca
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: vvaas <vvaas@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/01/21 10:36:21 by maldavid #+# #+# */
|
||||
/* Updated: 2024/01/26 02:10:11 by vvaas ### ########.fr */
|
||||
/* Updated: 2024/01/29 15:44:32 by maldavid ### ########.fr */
|
||||
/* */
|
||||
/******************************************************************************/
|
||||
|
||||
@@ -198,7 +198,7 @@ namespace irc
|
||||
if(!hasClient(client))
|
||||
return;
|
||||
if(_topic.empty())
|
||||
return client->sendCode(RPL_NOTOPIC " " + _name, " no topic is set");
|
||||
return client->sendCode(RPL_NOTOPIC, client->getNickName() + " @ " + _name, " no topic is set");
|
||||
return client->sendCode(RPL_TOPIC " " + _name, _topic);
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: vvaas <vvaas@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/01/22 17:31:06 by maldavid #+# #+# */
|
||||
/* Updated: 2024/01/26 02:33:40 by vvaas ### ########.fr */
|
||||
/* Updated: 2024/01/29 15:13:34 by maldavid ### ########.fr */
|
||||
/* */
|
||||
/******************************************************************************/
|
||||
|
||||
@@ -349,6 +349,7 @@ namespace irc
|
||||
client->sendCode(ERR_NOSUCHCHANNEL, "No such channel");
|
||||
chan->sendWho(client);
|
||||
}
|
||||
|
||||
void Server::handleTopic(unstd::SharedPtr<class Client> client, const Message& msg)
|
||||
{
|
||||
if(msg.getArgs().empty())
|
||||
|
||||
Reference in New Issue
Block a user