diff options
Diffstat (limited to 'src/modules/m_allowinvite.cpp')
-rw-r--r-- | src/modules/m_allowinvite.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |