summaryrefslogtreecommitdiff
path: root/src/modes/umode_o.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modes/umode_o.cpp')
-rw-r--r--src/modes/umode_o.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modes/umode_o.cpp b/src/modes/umode_o.cpp
index 2105376ba..861fb62dc 100644
--- a/src/modes/umode_o.cpp
+++ b/src/modes/umode_o.cpp
@@ -24,8 +24,7 @@ ModeAction ModeUserOperator::OnModeChange(userrec* source, userrec* dest, chanre
* verifying as an oper and getting an opertype assigned
* to your userrec!
*/
- dest->modes[UM_OPERATOR] = 0;
- /* Remove their opertype when they oper down */
- *dest->oper = 0;
+ dest->UnOper();
+
return MODEACTION_ALLOW;
}