X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_serverban.cpp;h=cf77ae9ba75ac99b5cce271eb71e82608c7b7fbd;hb=a5d110282a864fd2e91b51ce360a977cd0643657;hp=ec38b475482d1634f6d2b41dd9962c1fd5d60015;hpb=6b14ac1562dda1492e7ca44c2306e2432200b8cc;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_serverban.cpp b/src/modules/m_serverban.cpp index ec38b4754..cf77ae9ba 100644 --- a/src/modules/m_serverban.cpp +++ b/src/modules/m_serverban.cpp @@ -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()