summaryrefslogtreecommitdiff
path: root/src/modules/m_userip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_userip.cpp')
-rw-r--r--src/modules/m_userip.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_userip.cpp b/src/modules/m_userip.cpp
index 9e547d106..c60b2d18d 100644
--- a/src/modules/m_userip.cpp
+++ b/src/modules/m_userip.cpp
@@ -74,7 +74,7 @@ class ModuleUserIP : public Module
{
ServerInstance->AddCommand(&cmd);
Implementation eventlist[] = { I_On005Numeric };
- ServerInstance->Modules->Attach(eventlist, this, 1);
+ ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
}
virtual void On005Numeric(std::string &output)