]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_alltime.cpp
Convert more modules
[user/henk/code/inspircd.git] / src / modules / m_alltime.cpp
index 7e848245a64e2cd85d07f747cc51b89b4e00d857..6fc37708391f22a319541752bb9d844a096cd113 100644 (file)
@@ -57,6 +57,7 @@ class cmd_alltime : public command_t
        }
 };
 
+
 class Modulealltime : public Module
 {
        cmd_alltime *mycommand;
@@ -79,25 +80,4 @@ class Modulealltime : public Module
        
 };
 
-class ModulealltimeFactory : public ModuleFactory
-{
- public:
-       ModulealltimeFactory()
-       {
-       }
-       
-       ~ModulealltimeFactory()
-       {
-       }
-       
-       virtual Module *CreateModule(InspIRCd *Me)
-       {
-               return new Modulealltime(Me);
-       }
-};
-
-
-extern "C" DllExport void *init_module(void)
-{
-       return new ModulealltimeFactory;
-}
+MODULE_INIT(Modulealltime);