]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_namedmodes.cpp
Fix an extremely low risk crash bug in m_connectban.
[user/henk/code/inspircd.git] / src / modules / m_namedmodes.cpp
index 8233f4357b061bf2b62ad42f45180670c57f3736..4db1f70b92c78e9a0d5da781f99c0114a0eec90e 100644 (file)
@@ -17,6 +17,8 @@
  */
 
 
+/* $ModDesc: Provides the ability to manipulate modes via long names. */
+
 #include "inspircd.h"
 
 static void DisplayList(User* user, Channel* channel)
@@ -110,7 +112,7 @@ class ModuleNamedModes : public Module
                ServerInstance->Modules->AddService(dummyZ);
 
                Implementation eventlist[] = { I_OnPreMode };
-               ServerInstance->Modules->Attach(eventlist, this, 1);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        Version GetVersion()