]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_chanfilter.cpp
Add sanity checks to the ssl modules so that theres no possibility of an out of range...
[user/henk/code/inspircd.git] / src / modules / m_chanfilter.cpp
index f7cb81489828049ecf354520725314e11d0f596f..19e1fe3d92bdf14526262b6eed988d86b0d7002f 100644 (file)
 #define _SCL_SECURE_NO_DEPRECATE
 
 #include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "hashcomp.h"
 #include "u_listmode.h"
 
 /* $ModDesc: Provides channel-specific censor lists (like mode +G but varies from channel to channel) */
@@ -152,27 +148,4 @@ class ModuleChanFilter : public Module
        }
 };
 
-
-class ModuleChanFilterFactory : public ModuleFactory
-{
- public:
-       ModuleChanFilterFactory()
-       {
-       }
-       
-       ~ModuleChanFilterFactory()
-       {
-       }
-       
-       virtual Module * CreateModule(InspIRCd* Me)
-       {
-               return new ModuleChanFilter(Me);
-       }
-       
-};
-
-
-extern "C" DllExport void * init_module( void )
-{
-       return new ModuleChanFilterFactory;
-}
+MODULE_INIT(ModuleChanFilter)