]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_blockamsg.cpp
PROPAGATE this fix
[user/henk/code/inspircd.git] / src / modules / m_blockamsg.cpp
index 1724f0e5f2592331e0983d043a21e0c2b3c77fbe..bcef01fd22cb9a1ec3411f957bb2f6ffa2b73054 100644 (file)
  */
 
 #include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "hashcomp.h"
 
 /* $ModDesc: Attempt to block /amsg, at least some of the irritating mIRC scripts. */
 
@@ -188,25 +184,4 @@ class ModuleBlockAmsg : public Module
 };
 
 
-class ModuleBlockAmsgFactory : public ModuleFactory
-{
-       public:
-               ModuleBlockAmsgFactory()
-               {
-               }
-       
-               ~ModuleBlockAmsgFactory()
-               {
-               }
-       
-               virtual Module * CreateModule(InspIRCd* Me)
-               {
-                       return new ModuleBlockAmsg(Me);
-               }
-};
-
-
-extern "C" DllExport void * init_module( void )
-{
-       return new ModuleBlockAmsgFactory;
-}
+MODULE_INIT(ModuleBlockAmsg)