diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-01-25 19:27:51 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-01-25 19:27:51 +0000 |
commit | 33956298d3f3ad45395263eeff0ec4d132cf3c46 (patch) | |
tree | 80b0bbb8f71a5abe149675252ff1707d149af287 | |
parent | 0dd10bd16b67ff87a82627c8cfd5a49eff6db3e3 (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
-rw-r--r-- | src/modules/m_nopartmsg.cpp | 5 |
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'); } }; |