summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_nopartmsg.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/modules/m_nopartmsg.cpp b/src/modules/m_nopartmsg.cpp
index c3b9b64e8..1576fdc01 100644
--- a/src/modules/m_nopartmsg.cpp
+++ b/src/modules/m_nopartmsg.cpp
@@ -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');
}
};