X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_allowinvite.cpp;h=a53b934a68c016f1664b01f541424fb8b2172a56;hb=84a1569cd60daa64b1ae52a1fff62c0dc4d78850;hp=7dd2efc242199a25c1989820ce3a2754f333fa7d;hpb=ac7defcd3e52695dcf5e5150e9fe3e1624205e64;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_allowinvite.cpp b/src/modules/m_allowinvite.cpp index 7dd2efc24..a53b934a6 100644 --- a/src/modules/m_allowinvite.cpp +++ b/src/modules/m_allowinvite.cpp @@ -41,7 +41,7 @@ class ModuleAllowInvite : public Module if (!ServerInstance->Modes->AddMode(&ni)) throw ModuleException("Could not add new modes!"); Implementation eventlist[] = { I_OnUserPreInvite, I_On005Numeric }; - ServerInstance->Modules->Attach(eventlist, this, 2); + ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } virtual void On005Numeric(std::string &output)