Skip to content

Commit

Permalink
Merge pull request #109 from jdomingu98/96-quit-bug-no-se-muestra-qui…
Browse files Browse the repository at this point in the history
…t_msg

 bug QUIT without register
  • Loading branch information
Atrujillo02 authored Apr 23, 2024
2 parents dd29c25 + 4222685 commit e57beac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/commands/QuitCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ void QuitCommand::execute(int clientFd) {

std::set<User> allUsers;
std::set<User>::iterator it;

if (user.isRegistered())
allUsers.insert(user);
for (size_t i = 0; i < channels.size(); i++) {
if (!channels[i].isUserInChannel(nickname))
continue;
Expand Down

0 comments on commit e57beac

Please sign in to comment.