for (std::vector<ImplFilter>::iterator index = filters.begin(); index != filters.end(); index++)
{
/* Skip ones that dont apply to us */
-
if (!FilterBase::AppliesToMe(user, dynamic_cast<FilterResult*>(&(*index)), flgs))
continue;
+ //ServerInstance->Logs->Log("m_filter", DEBUG, "Match '%s' against '%s'", text.c_str(), index->freeform.c_str());
if (index->regex->Matches(text))
{
+ //ServerInstance->Logs->Log("m_filter", DEBUG, "MATCH");
fr = *index;
if (index != filters.begin())
{
}
return &fr;
}
+ //ServerInstance->Logs->Log("m_filter", DEBUG, "NO MATCH");
}
return NULL;
}
virtual bool Matches(const std::string& text)
{
- return InspIRCd::Match(this->regex_string, text);
+ return InspIRCd::Match(text, this->regex_string);
}
};