diff --git a/srcs/server_functions.cpp b/srcs/server_functions.cpp index 03baa77..a667ceb 100644 --- a/srcs/server_functions.cpp +++ b/srcs/server_functions.cpp @@ -6,7 +6,7 @@ /* By: vvaas +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/01/22 17:31:06 by maldavid #+# #+# */ -/* Updated: 2024/01/30 20:13:48 by maldavid ### ########.fr */ +/* Updated: 2024/01/30 20:21:11 by maldavid ### ########.fr */ /* */ /******************************************************************************/ @@ -120,7 +120,7 @@ namespace irc void Server::handleQuit(unstd::SharedPtr client, const Message& msg) { for(channel_it it = _channels.begin(); it != _channels.end(); ++it) - it->removeClient(client, msg.getReason()); + it->removeClient(client, (msg.getReason().empty() ? "Leaving" : msg.getReason())); client->printUserHeader(); std::cout << "quit" << std::endl; }