]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chanprotect.cpp
m_dccallow Add config option to control max entries on a list
[user/henk/code/inspircd.git] / src / modules / m_chanprotect.cpp
index 85405ec25e9bb90ffa212d96b438b3c237d58eac..affd0c8d674324649a674af542da9834a85ccf2f 100644 (file)
@@ -255,7 +255,7 @@ class ModuleChanProtect : public Module
                ServerInstance->Modules->AddService(cp);
 
                Implementation eventlist[] = { I_OnUserPreJoin };
-               ServerInstance->Modules->Attach(eventlist, this, 1);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        void LoadSettings()