aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-03-22 10:20:52 +0000
committerGravatar Sadie Powell2025-03-28 10:23:22 +0000
commit7d0e4a8799040de43e89f060bbe34150ca7841d0 (patch)
tree99cc6f9e29191baea8a791e3b26f6b8e877224e5
parentUpdate the description of the botmode module. (diff)
There is no need to restore the connect class of a quitting oper.
-rw-r--r--src/coremods/core_oper/core_oper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coremods/core_oper/core_oper.cpp b/src/coremods/core_oper/core_oper.cpp
index 4f7c3cbdc..e524a2010 100644
--- a/src/coremods/core_oper/core_oper.cpp
+++ b/src/coremods/core_oper/core_oper.cpp
@@ -133,7 +133,7 @@ public:
void OnPostOperLogout(User* user, const std::shared_ptr<OperAccount>& oper) override
{
LocalUser* luser = IS_LOCAL(user);
- if (!luser)
+ if (!luser || luser->quitting)
return;
if (hasoperclass.Get(luser))