summaryrefslogtreecommitdiff
path: root/src/usermanager.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-01-25 12:15:01 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-01-25 12:15:01 +0100
commit48869b38e938de4d8dd4cdff486b10348e81f7b6 (patch)
tree1f358eb6439bcf9f9b78ff8f1a7f426adfd5f5d1 /src/usermanager.cpp
parent458168b575663dc7bdb71c651c30320752f22e41 (diff)
Destroy Memberships of a quitting user in QuitUser() instead of in cull()
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r--src/usermanager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp
index 13646f225..b5050d91a 100644
--- a/src/usermanager.cpp
+++ b/src/usermanager.cpp
@@ -209,6 +209,7 @@ void UserManager::QuitUser(User* user, const std::string& quitreason, const std:
ServerInstance->Logs->Log("USERS", LOG_DEFAULT, "ERROR: Nick not found in clientlist, cannot remove: " + user->nick);
uuidlist->erase(user->uuid);
+ user->PurgeEmptyChannels();
}
void UserManager::AddLocalClone(User *user)