]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_alltime.cpp
m_spanningtree Remove unneeded #includes
[user/henk/code/inspircd.git] / src / modules / m_alltime.cpp
index 76536ed3f5ee650d6f437f9f89e25d9208ef5bec..00bf7dcc13cc3de518dfb12f9c3b4398885e24db 100644 (file)
@@ -52,7 +52,6 @@ class CommandAlltime : public Command
        }
 };
 
-
 class Modulealltime : public Module
 {
        CommandAlltime mycommand;
@@ -60,11 +59,11 @@ class Modulealltime : public Module
        Modulealltime()
                : mycommand(this)
        {
-               ServerInstance->AddCommand(&mycommand);
        }
 
-       virtual ~Modulealltime()
+       void init()
        {
+               ServerInstance->Modules->AddService(mycommand);
        }
 
        virtual Version GetVersion()