summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-26 09:39:21 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-26 09:39:21 +0000
commita152c67224a6c5c8115130034ac4cd0ffaa960d5 (patch)
tree35c8235057a3fca89aaed554d98a2b85ddf65be8
parent74c9d7d0111e8b18ef470509f2489b707d876e3b (diff)
- 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
-rw-r--r--src/modules/m_filter.cpp3
1 files changed, 1 insertions, 2 deletions
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())