summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-01-25 19:27:51 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-01-25 19:27:51 +0000
commit33956298d3f3ad45395263eeff0ec4d132cf3c46 (patch)
tree80b0bbb8f71a5abe149675252ff1707d149af287 /src/modules
parent0dd10bd16b67ff87a82627c8cfd5a49eff6db3e3 (diff)
Fix m_nopartmsg using the wrong extban character in 005, noted thanks to Jason.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11003 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-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');
}
};