summaryrefslogtreecommitdiff
path: root/modules/extra/cs_entrymsg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/extra/cs_entrymsg.cpp')
-rw-r--r--modules/extra/cs_entrymsg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/extra/cs_entrymsg.cpp b/modules/extra/cs_entrymsg.cpp
index 547a5cb1a..3aa8ed862 100644
--- a/modules/extra/cs_entrymsg.cpp
+++ b/modules/extra/cs_entrymsg.cpp
@@ -166,7 +166,7 @@ class CSEntryMessage : public Module
this->SetAuthor("Anope");
Implementation i[] = { I_OnJoinChannel, I_OnReload, I_OnDatabaseReadMetadata, I_OnDatabaseWriteMetadata };
- ModuleManager::Attach(i, this, 4);
+ ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
ModuleManager::RegisterService(&commandentrymsg);