diff options
| author | 2022-11-28 03:22:08 +0000 | |
|---|---|---|
| committer | 2022-11-28 03:22:08 +0000 | |
| commit | ee41348dbd93dc891a3afaccd74db857ea21ed12 (patch) | |
| tree | 96fe9aa64aee5c6206b220e736c6ef3e6f3ca371 /src/users.cpp | |
| parent | Fix 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.cpp | 2 |
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); |
