diff options
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r-- | src/usermanager.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp index 37f64b9d2..9c04c7889 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -193,6 +193,7 @@ void UserManager::QuitUser(User* user, const std::string& quitreason, const std: if (lu->registered == REG_ALL) ServerInstance->SNO->WriteToSnoMask('q',"Client exiting: %s (%s) [%s]", user->GetFullRealHost().c_str(), user->GetIPString().c_str(), operreason->c_str()); + local_users.erase(lu); } if (!clientlist.erase(user->nick)) @@ -287,9 +288,6 @@ void UserManager::DoBackgroundUserStuff() { LocalUser* curr = *i; - if (curr->quitting) - continue; - if (curr->CommandFloodPenalty || curr->eh.getSendQSize()) { unsigned int rate = curr->MyClass->GetCommandRate(); |