- void Implements(char* List)
- {
- List[I_On005Numeric] = List[I_OnUserPreJoin] = 1;
- }
-
- virtual void On005Numeric(std::string &output)
- {
- InsertMode(output,"O",4);
+ oc = new OperChans(ServerInstance);
+ if (!ServerInstance->Modes->AddMode(oc))
+ throw ModuleException("Could not add new modes!");
+ Implementation eventlist[] = { I_OnUserPreJoin };
+ ServerInstance->Modules->Attach(eventlist, this, 1);