]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Converted more stuff to 'Implements' system
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 26 Dec 2005 18:25:56 +0000 (18:25 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 26 Dec 2005 18:25:56 +0000 (18:25 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2658 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/extra/m_filter_pcre.cpp
src/modules/m_denychans.cpp
src/modules/m_filter.cpp

index c654fd1cf087d37bf73a3ae0c66710f6c8bdf37d..b2cc40f15f3e2b74f64121f23f38dad54abd5c2c 100644 (file)
@@ -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)
index ab0c3616f34baf62cf85dec5d4510ce621f772aa..1da4158d3caaaa6c2931790cf6ba2e90d5aca4b2 100644 (file)
@@ -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++)
index d43ad7373b05bfe3edd4057ce9fb915866eb8109..37a13f96875195785b1c1c8d8881accea7895845 100644 (file)
@@ -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">