5 #include "modes/umode_o.h"
7 ModeUserOperator::ModeUserOperator(InspIRCd* Instance) : ModeHandler(Instance, 'o', 0, 0, false, MODETYPE_USER, true)
11 ModeAction ModeUserOperator::OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding)
13 /* Only opers can execute this class at all */
15 return MODEACTION_DENY;
17 /* Not even opers can GIVE the +o mode, only take it away */
19 return MODEACTION_DENY;
22 * Note that oper status is only given in cmd_oper.cpp
23 * NOT here. It is impossible to directly set +o without
24 * verifying as an oper and getting an opertype assigned
29 return MODEACTION_ALLOW;