summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/extra/m_filter_pcre.cpp7
-rw-r--r--src/modules/m_denychans.cpp5
-rw-r--r--src/modules/m_filter.cpp5
3 files changed, 16 insertions, 1 deletions
diff --git a/src/modules/extra/m_filter_pcre.cpp b/src/modules/extra/m_filter_pcre.cpp
index c654fd1cf..b2cc40f15 100644
--- a/src/modules/extra/m_filter_pcre.cpp
+++ b/src/modules/extra/m_filter_pcre.cpp
@@ -86,7 +86,12 @@ class ModuleFilterPCRE : public Module
delete MyConf;
delete Conf;
}
-
+
+ void Implements(char* List)
+ {
+ List[I_OnUserPreMessage] = List[I_OnUserPreNotice] = List[I_OnRehash] = 1;
+ }
+
// format of a config entry is <keyword pattern="^regexp$" reason="Some reason here" action="kill/block">
virtual int OnUserPreMessage(userrec* user,void* dest,int target_type, std::string &text)
diff --git a/src/modules/m_denychans.cpp b/src/modules/m_denychans.cpp
index ab0c3616f..1da4158d3 100644
--- a/src/modules/m_denychans.cpp
+++ b/src/modules/m_denychans.cpp
@@ -50,6 +50,11 @@ class ModuleDenyChannels : public Module
return Version(1,0,0,1,VF_VENDOR);
}
+ void Implements(char* List)
+ {
+ List[I_OnUserPreJoin] = 1;
+ }
+
virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname)
{
for (int j =0; j < Conf->Enumerate("badchan"); j++)
diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp
index d43ad7373..37a13f968 100644
--- a/src/modules/m_filter.cpp
+++ b/src/modules/m_filter.cpp
@@ -61,6 +61,11 @@ class ModuleFilter : public Module
delete MyConf;
delete Conf;
}
+
+ void Implements(char* List)
+ {
+ List[I_OnUserPreMessage] = List[I_OnUserPreNotice] = List[I_OnRehash] = 1;
+ }
// format of a config entry is <keyword pattern="*glob*" reason="Some reason here" action="kill/block">