diff options
| author | 2014-07-19 14:16:15 +0200 | |
|---|---|---|
| committer | 2014-07-19 14:16:15 +0200 | |
| commit | cec9265bdbb63c06d73cb983b3fc293905ed79d2 (patch) | |
| tree | 3eb53e9c588aae2b950dc345b12b6b7c1a52981d /src/usermanager.cpp | |
| parent | core_stats Deduplicate stats L and l code (diff) | |
Erase local users from UserManager::local_list in QuitUser()
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(); |
