aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
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);