- ho = new Helpop(ServerInstance);
- if (!ServerInstance->AddMode(ho, 'h'))
- throw ModuleException("Could not add new modes!");
- mycommand = new cmd_helpop(ServerInstance);
- ServerInstance->AddCommand(mycommand);
+ ServerInstance->Modules->AddService(ho);
+ ServerInstance->Modules->AddService(cmd);
+ Implementation eventlist[] = { I_OnRehash, I_OnWhois };
+ ServerInstance->Modules->Attach(eventlist, this, 2);