aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-11-28 03:22:08 +0000
committerGravatar Sadie Powell2022-11-28 03:22:08 +0000
commitee41348dbd93dc891a3afaccd74db857ea21ed12 (patch)
tree96fe9aa64aee5c6206b220e736c6ef3e6f3ca371 /src/users.cpp
parentFix various edge cases in testssl. (diff)
Avoid sending an +o mode change when the mode isn't available.
This is generally fine but may cause problems if an oper unloads the core_oper module.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 227a6897e..2b2c94d65 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -399,7 +399,7 @@ void User::Oper(OperInfo* info)
this->oper = info;
LocalUser* localuser = IS_LOCAL(this);
- if (localuser)
+ if (localuser && opermh)
{
Modes::ChangeList changelist;
changelist.push_add(opermh);