summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-08 18:40:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-08 18:40:02 +0000
commitbb319272f8afffcca49c881e8de3e1a1f6eaa570 (patch)
tree7c2082e5c0fcc98c43c5add00eaedf9f26cdb1db /src
parent9fb4cb8d3355fb6d80b18f1a6b6d65106720a428 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modes/umode_o.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}