]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_serverban.cpp
m_dccallow Validate tokens before use
[user/henk/code/inspircd.git] / src / modules / m_serverban.cpp
index ec38b475482d1634f6d2b41dd9962c1fd5d60015..cf77ae9ba75ac99b5cce271eb71e82608c7b7fbd 100644 (file)
@@ -25,9 +25,10 @@ class ModuleServerBan : public Module
 {
  private:
  public:
-       ModuleServerBan()       {
+       void init()
+       {
                Implementation eventlist[] = { I_OnCheckBan, I_On005Numeric };
-               ServerInstance->Modules->Attach(eventlist, this, 2);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        ~ModuleServerBan()