X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_lockserv.cpp;h=4983ae16abe3afa01eaa7022feca4fe7c2a51f7c;hb=a5d110282a864fd2e91b51ce360a977cd0643657;hp=eef767c5b12e0c2b393228a924d346441e37a29b;hpb=84a1569cd60daa64b1ae52a1fff62c0dc4d78850;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_lockserv.cpp b/src/modules/m_lockserv.cpp index eef767c5b..4983ae16a 100644 --- a/src/modules/m_lockserv.cpp +++ b/src/modules/m_lockserv.cpp @@ -93,8 +93,8 @@ public: void init() { locked = false; - ServerInstance->AddCommand(&lockcommand); - ServerInstance->AddCommand(&unlockcommand); + ServerInstance->Modules->AddService(lockcommand); + ServerInstance->Modules->AddService(unlockcommand); Implementation eventlist[] = { I_OnUserRegister, I_OnRehash, I_OnCheckReady }; ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); }