]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_filter_pcre.cpp
Updated copyrights in headers etc using perl inplace edit
[user/henk/code/inspircd.git] / src / modules / extra / m_filter_pcre.cpp
index c654fd1cf087d37bf73a3ae0c66710f6c8bdf37d..ca002f578be98bd1b4adb480417891d3615a74c3 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
+ *  InspIRCd is copyright (C) 2002-2004 ChatSpike-Dev.
  *                       E-mail:
  *                <brain@chatspike.net>
  *               <Craig@chatspike.net>
@@ -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)