X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_nopartmsg.cpp;h=ad3413101441a8f04a59a722bbd5853d0fb5813e;hb=571714e28b26cc59cbc8d27098a5ba981240ee2d;hp=0c566057128c20b648b75af858d42cc703b48ba3;hpb=553a8da754c8cd308bad2008018849714e70f9b7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_nopartmsg.cpp b/src/modules/m_nopartmsg.cpp index 0c5660571..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() @@ -47,7 +47,7 @@ class ModulePartMsgBan : public Module return; if (memb->chan->GetExtBanStatus(memb->user, 'p') == MOD_RES_DENY) - partmessage = ""; + partmessage.clear(); return; }