X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_channelban.cpp;h=6eec486ea8a1a4cab6149d6e4651f5f3115b3859;hb=a5d110282a864fd2e91b51ce360a977cd0643657;hp=8c5962f2a35e930f8dc9ebbeb7c20b6cb5581717;hpb=6b14ac1562dda1492e7ca44c2306e2432200b8cc;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_channelban.cpp b/src/modules/m_channelban.cpp index 8c5962f2a..6eec486ea 100644 --- a/src/modules/m_channelban.cpp +++ b/src/modules/m_channelban.cpp @@ -26,9 +26,10 @@ class ModuleBadChannelExtban : public Module { private: public: - ModuleBadChannelExtban() { + void init() + { Implementation eventlist[] = { I_OnCheckBan, I_On005Numeric }; - ServerInstance->Modules->Attach(eventlist, this, 2); + ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } ~ModuleBadChannelExtban()