From bb319272f8afffcca49c881e8de3e1a1f6eaa570 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 8 Jul 2006 18:40:02 +0000 Subject: Add code to remove an opers opertype when they oper down git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4184 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modes/umode_o.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/modes') diff --git a/src/modes/umode_o.cpp b/src/modes/umode_o.cpp index 2ce1fe5c5..2105376ba 100644 --- a/src/modes/umode_o.cpp +++ b/src/modes/umode_o.cpp @@ -25,5 +25,7 @@ ModeAction ModeUserOperator::OnModeChange(userrec* source, userrec* dest, chanre * to your userrec! */ dest->modes[UM_OPERATOR] = 0; + /* Remove their opertype when they oper down */ + *dest->oper = 0; return MODEACTION_ALLOW; } -- cgit v1.2.3