]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_alltime.cpp
Allow commands to optionally route themselves using ENCAP
[user/henk/code/inspircd.git] / src / modules / m_alltime.cpp
index 2ba9d18b62c01928b641465f58668b53aa8cfd93..79a94c2b6f8114bb9697947092b2cd13c92ff2ce 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.
@@ -50,14 +50,12 @@ class CommandAlltime : public Command
 
 class Modulealltime : public Module
 {
-       CommandAlltime *mycommand;
+       CommandAlltime mycommand;
  public:
        Modulealltime(InspIRCd *Me)
-               : Module(Me)
+               : Module(Me), mycommand(Me)
        {
-               mycommand = new CommandAlltime(ServerInstance);
-               ServerInstance->AddCommand(mycommand);
-
+               ServerInstance->AddCommand(&mycommand);
        }
 
        virtual ~Modulealltime()