From ee41348dbd93dc891a3afaccd74db857ea21ed12 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 28 Nov 2022 03:22:08 +0000 Subject: 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. --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/users.cpp') 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); -- cgit v1.3.1-10-gc9f91