From a152c67224a6c5c8115130034ac4cd0ffaa960d5 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 26 May 2007 09:39:21 +0000 Subject: - Remove duplicate call to MatchText in filter.. it seems to work ok for me, fingers crossed.. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7145 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_filter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp index 652e4d85b..36073db3b 100644 --- a/src/modules/m_filter.cpp +++ b/src/modules/m_filter.cpp @@ -40,10 +40,9 @@ class ModuleFilter : public FilterBase virtual FilterResult* FilterMatch(const std::string &text) { - std::string text2 = text+" "; for (filter_t::iterator index = filters.begin(); index != filters.end(); index++) { - if ((ServerInstance->MatchText(text2,index->first)) || (ServerInstance->MatchText(text,index->first))) + if (ServerInstance->MatchText(text,index->first)) { FilterResult* fr = index->second; if (index != filters.begin()) -- cgit v1.2.3