diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-08 15:05:49 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-08 15:05:49 +0000 |
commit | 8d99003c221b7d6dcc04d0fc58629c243b48dbf0 (patch) | |
tree | 1412b12337da066d69cea9529dfefef7234c4062 /src/modes | |
parent | 8c4528880ab1dfe6307b03d5976e23e1a553a663 (diff) |
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
Diffstat (limited to 'src/modes')
-rw-r--r-- | src/modes/umode_o.cpp | 5 |
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; } |