summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_filter.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp
index 5ce089b63..c5bd5cd47 100644
--- a/src/modules/m_filter.cpp
+++ b/src/modules/m_filter.cpp
@@ -594,14 +594,7 @@ FilterResult* ModuleFilter::FilterMatch(User* user, const std::string &text, int
if (index->regex->Matches(filter->flag_strip_color ? stripped_text : text))
{
//ServerInstance->Logs->Log("m_filter", DEBUG, "MATCH");
- ImplFilter fr = *index;
- if (index != filters.begin())
- {
- /* Move to head of list for efficiency */
- filters.erase(index);
- filters.insert(filters.begin(), fr);
- }
- return &*filters.begin();
+ return &*index;
}
//ServerInstance->Logs->Log("m_filter", DEBUG, "NO MATCH");
}