diff options
author | Peter Powell <petpow@saberuk.com> | 2018-12-12 13:51:26 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-12-12 14:43:55 +0000 |
commit | 51891f10f2a05e16e45651a669db6680a433bf9b (patch) | |
tree | 795c43424f68ed0f6ea4e718f955667828d1087e /src/usermanager.cpp | |
parent | 372c5c94964263ba6c1f2f44079aac3aff448225 (diff) |
Fix a crash when the core_oper module is not loaded.
Diffstat (limited to 'src/usermanager.cpp')
-rw-r--r-- | src/usermanager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/usermanager.cpp b/src/usermanager.cpp index 968d5db00..6f9d15502 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -221,6 +221,7 @@ void UserManager::QuitUser(User* user, const std::string& quitreason, const std: uuidlist.erase(user->uuid); user->PurgeEmptyChannels(); + user->UnOper(); } void UserManager::AddClone(User* user) |