diff --git a/src/commands/QuitCommand.cpp b/src/commands/QuitCommand.cpp index 59d086e..e3d8eda 100644 --- a/src/commands/QuitCommand.cpp +++ b/src/commands/QuitCommand.cpp @@ -27,6 +27,9 @@ void QuitCommand::execute(int clientFd) { std::set allUsers; std::set::iterator it; + + if (user.isRegistered()) + allUsers.insert(user); for (size_t i = 0; i < channels.size(); i++) { if (!channels[i].isUserInChannel(nickname)) continue;