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