From 4233ad22c0cc94c45f877b75dd964e4b7f82c516 Mon Sep 17 00:00:00 2001 From: w00t Date: Tue, 5 Aug 2008 11:30:01 +0000 Subject: Use correct method for adding extban type in m_gecosban, add 005 notification of C extban too git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10089 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_gecosban.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/modules/m_gecosban.cpp') diff --git a/src/modules/m_gecosban.cpp b/src/modules/m_gecosban.cpp index 614320623..a59508e06 100644 --- a/src/modules/m_gecosban.cpp +++ b/src/modules/m_gecosban.cpp @@ -54,10 +54,7 @@ class ModuleGecosBan : public Module virtual void On005Numeric(std::string &output) { - if (output.find(" EXTBAN=:") == std::string::npos) - output.append(" EXTBAN=:r"); - else - output.insert(output.find(" EXTBAN=:") + 9, "r"); + ServerInstance->AddExtBanChar('r'); } }; -- cgit v1.2.3