]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nopartmsg.cpp
Fix previous module mismatch message; "remote" is misleading when sent as an ERROR
[user/henk/code/inspircd.git] / src / modules / m_nopartmsg.cpp
index c3b9b64e8b030577df6150717e625497102b4206..afa44900d17ed9fbdc6704c25e706ae37c63ab12 100644 (file)
@@ -31,7 +31,7 @@ class ModulePartMsgBan : public Module
 
        virtual Version GetVersion()
        {
-               return Version("$Id$", VF_VENDOR, API_VERSION);
+               return Version("$Id$", VF_COMMON|VF_VENDOR, API_VERSION);
        }
 
 
@@ -48,10 +48,7 @@ class ModulePartMsgBan : public Module
 
        virtual void On005Numeric(std::string &output)
        {
-               if (output.find(" EXTBAN=:") == std::string::npos)
-                       output.append(" EXTBAN=:p");
-               else
-                       output.insert(output.find(" EXTBAN=:") + 9, "p");
+               ServerInstance->AddExtBanChar('p');
        }
 };