]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_alltime.cpp
Add modules to the VF_COMMON list in backwards compatability link mode, translate...
[user/henk/code/inspircd.git] / src / modules / m_alltime.cpp
index 2ba9d18b62c01928b641465f58668b53aa8cfd93..7121ac4c795a3a071a054c3f19b9140e62a585a1 100644 (file)
@@ -2,8 +2,8 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ *  InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * See: http://wiki.inspircd.org/Credits
  *
  * This program is free but copyrighted software; see
  *            the file COPYING for details.
@@ -18,9 +18,8 @@
 class CommandAlltime : public Command
 {
  public:
-       CommandAlltime(InspIRCd *Instance) : Command(Instance, "ALLTIME", "o", 0)
+       CommandAlltime(InspIRCd *Instance, Module* Creator) : Command(Instance, Creator, "ALLTIME", "o", 0)
        {
-               this->source = "m_alltime.so";
                syntax.clear();
                translation.push_back(TR_END);
        }
@@ -50,14 +49,12 @@ class CommandAlltime : public Command
 
 class Modulealltime : public Module
 {
-       CommandAlltime *mycommand;
+       CommandAlltime mycommand;
  public:
        Modulealltime(InspIRCd *Me)
-               : Module(Me)
+               : Module(Me), mycommand(Me, this)
        {
-               mycommand = new CommandAlltime(ServerInstance);
-               ServerInstance->AddCommand(mycommand);
-
+               ServerInstance->AddCommand(&mycommand);
        }
 
        virtual ~Modulealltime()