X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_restrictmsg.cpp;h=e814f3b161d2db6bd7570e546686f25ebb9de6d9;hb=a45db73920c6a3e51e5a19fe697f86dd185d72b4;hp=ef9181a2469857c245f4138926e25b41633edcad;hpb=46a39046196f55b52336e19662bb7bac85b731ac;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_restrictmsg.cpp b/src/modules/m_restrictmsg.cpp index ef9181a24..e814f3b16 100644 --- a/src/modules/m_restrictmsg.cpp +++ b/src/modules/m_restrictmsg.cpp @@ -29,11 +29,10 @@ class ModuleRestrictMsg : public Module public: - ModuleRestrictMsg() - { - + void init() + { Implementation eventlist[] = { I_OnUserPreMessage, I_OnUserPreNotice }; - ServerInstance->Modules->Attach(eventlist, this, 2); + ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation)); }