From 8d99003c221b7d6dcc04d0fc58629c243b48dbf0 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 8 Aug 2006 15:05:49 +0000 Subject: AddOper() and DeleteOper() -> userrec::Oper() and userrec::UnOper() (these do more, too) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4792 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modes/umode_o.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/modes') 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; } -- cgit v1.2.3