X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_alltime.cpp;h=79a94c2b6f8114bb9697947092b2cd13c92ff2ce;hb=8cebe2878f3878afce6f643d93668155cb26801d;hp=ad7002ae200949ca1c07314ea72675eee1d7cf34;hpb=43847ec9c7e1a195163eb4c529f1c92fd1ace0a4;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp index ad7002ae2..79a94c2b6 100644 --- a/src/modules/m_alltime.cpp +++ b/src/modules/m_alltime.cpp @@ -3,7 +3,7 @@ * +------------------------------------+ * * InspIRCd: (C) 2002-2009 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits + * 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()