- ServerInstance->AddCommand(&lockcommand);
- ServerInstance->AddCommand(&unlockcommand);
- Implementation eventlist[] = { I_OnUserRegister, I_OnRehash, I_OnCheckReady };
- ServerInstance->Modules->Attach(eventlist, this, 3);
+ ServerInstance->Modules->AddService(lockcommand);
+ ServerInstance->Modules->AddService(unlockcommand);