X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Fmodules%2Fm_muteban.cpp;h=767af29017b7dde4751342f3918a479e3fac4564;hb=09186df9f8c0d4f699b5abb4325d7dd583a8a0b1;hp=03e3d646e12cd5cfee7b676808d6f427076862c1;hpb=553a8da754c8cd308bad2008018849714e70f9b7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_muteban.cpp b/src/modules/m_muteban.cpp index 03e3d646e..767af2901 100644 --- a/src/modules/m_muteban.cpp +++ b/src/modules/m_muteban.cpp @@ -26,9 +26,10 @@ class ModuleQuietBan : public Module { private: public: - ModuleQuietBan() { + void init() + { Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice, I_On005Numeric }; - ServerInstance->Modules->Attach(eventlist, this, 3); + ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } virtual ~ModuleQuietBan()