From 33956298d3f3ad45395263eeff0ec4d132cf3c46 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 25 Jan 2009 19:27:51 +0000 Subject: 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 --- src/modules/m_nopartmsg.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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'); } }; -- cgit v1.2.3