]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_antibottler.cpp
Convert more modules
[user/henk/code/inspircd.git] / src / modules / m_antibottler.cpp
index 93a5691efdca7d0f43a66521aeabdf21a8f7ca17..2c96495a4341c53e1ec7929798feafa79dfe6beb 100644 (file)
  * ---------------------------------------------------
  */
 
+#include "inspircd.h"
 #include "users.h"
 #include "channels.h"
 #include "modules.h"
-#include "inspircd.h"
 
 /* $ModDesc: Changes the ident of connecting bottler clients to 'bottler' */
 
@@ -96,28 +96,4 @@ class ModuleAntiBottler : public Module
        }
 };
 
-
-class ModuleAntiBottlerFactory : public ModuleFactory
-{
- public:
-       ModuleAntiBottlerFactory()
-       {
-       }
-       
-       ~ModuleAntiBottlerFactory()
-       {
-       }
-       
-       virtual Module * CreateModule(InspIRCd* Me)
-       {
-               return new ModuleAntiBottler(Me);
-       }
-       
-};
-
-
-extern "C" DllExport void * init_module( void )
-{
-       return new ModuleAntiBottlerFactory;
-}
-
+MODULE_INIT(ModuleAntiBottler);