X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodules%2Fm_chghost.cpp;h=5855104def3ca8c37c6edcca156f9d374e9613cf;hb=84a1569cd60daa64b1ae52a1fff62c0dc4d78850;hp=d98e14d75b0e623f4ec815e5cacbb7f68e6a80e9;hpb=ac7defcd3e52695dcf5e5150e9fe3e1624205e64;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp index d98e14d75..5855104de 100644 --- a/src/modules/m_chghost.cpp +++ b/src/modules/m_chghost.cpp @@ -100,7 +100,7 @@ class ModuleChgHost : public Module OnRehash(NULL); ServerInstance->AddCommand(&cmd); Implementation eventlist[] = { I_OnRehash }; - ServerInstance->Modules->Attach(eventlist, this, 1); + ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } void OnRehash(User* user)