summaryrefslogtreecommitdiff
path: root/modules/core/bs_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/bs_main.cpp')
-rw-r--r--modules/core/bs_main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/core/bs_main.cpp b/modules/core/bs_main.cpp
index ff1e1f0d4..515b99ae0 100644
--- a/modules/core/bs_main.cpp
+++ b/modules/core/bs_main.cpp
@@ -27,7 +27,7 @@ class BotServCore : public Module
Implementation i[] = { I_OnPrivmsg, I_OnPreCommand, I_OnJoinChannel, I_OnLeaveChannel,
I_OnPreHelp, I_OnPostHelp, I_OnChannelModeSet };
- ModuleManager::Attach(i, this, 7);
+ ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation));
}