]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nopartmsg.cpp
Merge pull request #1157 from SaberUK/insp20+fix-cron-restart
[user/henk/code/inspircd.git] / src / modules / m_nopartmsg.cpp
index 0c566057128c20b648b75af858d42cc703b48ba3..ad3413101441a8f04a59a722bbd5853d0fb5813e 100644 (file)
@@ -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;
        }