X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmodules%2Fm_clones.cpp;h=58ecff17d22ab6b547d934d2622dfd2ac2e351f3;hb=b5e220008782b2d538cb8e6e3b1923af0c13fb99;hp=b7cdd5da0522149b9b6136891c223a7bd4bef3b3;hpb=43847ec9c7e1a195163eb4c529f1c92fd1ace0a4;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_clones.cpp b/src/modules/m_clones.cpp index b7cdd5da0..58ecff17d 100644 --- a/src/modules/m_clones.cpp +++ b/src/modules/m_clones.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. @@ -60,14 +60,11 @@ class CommandClones : public Command class ModuleClones : public Module { private: - CommandClones *mycommand; + CommandClones cmd; public: - ModuleClones(InspIRCd* Me) : Module(Me) + ModuleClones(InspIRCd* Me) : Module(Me), cmd(Me) { - - mycommand = new CommandClones(ServerInstance); - ServerInstance->AddCommand(mycommand); - + ServerInstance->AddCommand(&cmd); } virtual ~ModuleClones()