- opm = new OperPrefixMode(this, pfx[0]);
- if ((!ServerInstance->Modes->AddMode(opm)))
- throw ModuleException("Could not add a new mode!");
-
- Implementation eventlist[] = { I_OnPostJoin, I_OnUserQuit, I_OnUserKick, I_OnUserPart, I_OnOper };
- ServerInstance->Modules->Attach(eventlist, this, 5);
- }
-
- void PushChanMode(Channel* channel, User* user)
+ public:
+ ModuleOperPrefixMode()
+ : opm(this), hideoperwatcher(this)
+ , hideopermode(this, "hideoper")