]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_channelban.cpp
Merge pull request #1169 from SaberUK/insp20+fix-makefile
[user/henk/code/inspircd.git] / src / modules / m_channelban.cpp
index 71d4de784afefefbb379a1ec962907c74542f5b7..6eec486ea8a1a4cab6149d6e4651f5f3115b3859 100644 (file)
@@ -29,7 +29,7 @@ class ModuleBadChannelExtban : public Module
        void init()
        {
                Implementation eventlist[] = { I_OnCheckBan, I_On005Numeric };
-               ServerInstance->Modules->Attach(eventlist, this, 2);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        ~ModuleBadChannelExtban()