From 63a4201d15b041edf0dc029b46684a2ec01ff75b Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 31 Jul 2011 06:24:24 -0400 Subject: Fixed these ModuleManager::Attach calls once and for all.. --- modules/core/cs_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/core/cs_main.cpp') diff --git a/modules/core/cs_main.cpp b/modules/core/cs_main.cpp index 0ee132fe7..7093ab3ca 100644 --- a/modules/core/cs_main.cpp +++ b/modules/core/cs_main.cpp @@ -25,7 +25,7 @@ class ChanServCore : public Module throw ModuleException("No bot named " + Config->ChanServ); Implementation i[] = { I_OnBotPrivmsg, I_OnDelCore, I_OnPreHelp, I_OnPostHelp }; - ModuleManager::Attach(i, this, 4); + ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation)); } EventReturn OnBotPrivmsg(User *u, BotInfo *bi, Anope::string &message) -- cgit