X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=inline;f=src%2Fmodules%2Fm_nopartmsg.cpp;h=ad3413101441a8f04a59a722bbd5853d0fb5813e;hb=571714e28b26cc59cbc8d27098a5ba981240ee2d;hp=a8c4a5e2b63196d64036fd561266b9314c42c3f7;hpb=ba5c0db795824c3fc1ad48ce332d7bdc440cb77f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_nopartmsg.cpp b/src/modules/m_nopartmsg.cpp index a8c4a5e2b..ad3413101 100644 --- a/src/modules/m_nopartmsg.cpp +++ b/src/modules/m_nopartmsg.cpp @@ -25,10 +25,10 @@ class ModulePartMsgBan : public Module { private: public: - ModulePartMsgBan() + void init() { Implementation eventlist[] = { I_OnUserPart, I_On005Numeric }; - ServerInstance->Modules->Attach(eventlist, this, 2); + ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); } virtual ~ModulePartMsgBan()