]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_gecosban.cpp
Switch <stdint.h> test to use a test file too.
[user/henk/code/inspircd.git] / src / modules / m_gecosban.cpp
index 73bfdb649e517652c0a4f380e5d7e9e46c82926f..1497c1b87b3f808503c80da9a03df7d22fb14669 100644 (file)
 class ModuleGecosBan : public Module
 {
  public:
-       ModuleGecosBan()
+       void init()
        {
                Implementation eventlist[] = { I_OnCheckBan, I_On005Numeric };
-               ServerInstance->Modules->Attach(eventlist, this, 2);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        ~ModuleGecosBan()