-
- oc = new OperChans(ServerInstance);
- ServerInstance->AddMode(oc, 'O');
+ if (!ServerInstance->Modes->AddMode(&oc))
+ throw ModuleException("Could not add new modes!");
+ Implementation eventlist[] = { I_OnCheckBan, I_On005Numeric, I_OnUserPreJoin };
+ ServerInstance->Modules->Attach(eventlist, this, 3);