summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authoraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-20 01:42:29 +0000
committeraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-20 01:42:29 +0000
commit5a5d59a7916cf40d71e6a312352867a489ff2a52 (patch)
treedb40b207c26c0dd14a8a2a8c5c3e2d43ef4a7ff2 /src/modules/extra
parent586c3cae3d4aeaf87c01538436ea9c84788cc23f (diff)
Update m_filter* to 1.2 API (it was still using Implements()), also implement <exemptfromfilter channel="#blah"> to exclude channels from filtering.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8742 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_filter_pcre.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/extra/m_filter_pcre.cpp b/src/modules/extra/m_filter_pcre.cpp
index 4f52c8a86..64bb949bc 100644
--- a/src/modules/extra/m_filter_pcre.cpp
+++ b/src/modules/extra/m_filter_pcre.cpp
@@ -163,6 +163,7 @@ class ModuleFilterPCRE : public FilterBase
ServerInstance->Log(DEFAULT,"Regular expression %s loaded.", pattern.c_str());
}
}
+ FilterBase::OnRehash(user, parameter);
}
virtual int OnStats(char symbol, User* user, string_list &results)
@@ -174,6 +175,10 @@ class ModuleFilterPCRE : public FilterBase
{
results.push_back(sn+" 223 "+user->nick+" :REGEXP:"+i->freeform+" "+i->flags+" "+i->action+" "+ConvToStr(i->gline_time)+" :"+i->reason);
}
+ for (std::vector<std::string>::iterator i = exemptfromfilter.begin(); i != exemptfromfilter.end(); ++i)
+ {
+ results.push_back(sn+" 223 "+user->nick+" :EXEMPT "+(*i));
+ }
}
return 0;
}