X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_globalload.cpp;h=22286b950e9dead2a72f93873b440a7be4b91f4c;hb=9cdf47629faeec64edc77ff0729dc55946ed753c;hp=f10d7f465197b3c2e2777adc1003bb386d4ef4d0;hpb=2de13e15c26edf4f4a5c0280974b2dea052c1853;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_globalload.cpp b/src/modules/m_globalload.cpp index f10d7f465..22286b950 100644 --- a/src/modules/m_globalload.cpp +++ b/src/modules/m_globalload.cpp @@ -178,9 +178,13 @@ class ModuleGlobalLoad : public Module ModuleGlobalLoad() : cmd1(this), cmd2(this), cmd3(this) { - ServerInstance->AddCommand(&cmd1); - ServerInstance->AddCommand(&cmd2); - ServerInstance->AddCommand(&cmd3); + } + + void init() + { + ServerInstance->Modules->AddService(cmd1); + ServerInstance->Modules->AddService(cmd2); + ServerInstance->Modules->AddService(cmd3); } ~ModuleGlobalLoad()