X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_userip.cpp;h=8600546bcbfa2a2730695e9b7d962675fe87b101;hb=219993bc9018d9f0d9568330d7a972b68b785d27;hp=7ffeb383a1fbe4b7ab7adc5d7600e83bb1a8ef20;hpb=6f7164eb0af1035bf7a2e5d604155fd20ffcfd3f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_userip.cpp b/src/modules/m_userip.cpp index 7ffeb383a..8600546bc 100644 --- a/src/modules/m_userip.cpp +++ b/src/modules/m_userip.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. @@ -56,14 +56,12 @@ class CommandUserip : public Command class ModuleUserIP : public Module { - CommandUserip* mycommand; + CommandUserip cmd; public: ModuleUserIP(InspIRCd* Me) - : Module(Me) + : Module(Me), cmd(Me) { - - mycommand = new CommandUserip(ServerInstance); - ServerInstance->AddCommand(mycommand); + ServerInstance->AddCommand(&cmd); Implementation eventlist[] = { I_On005Numeric }; ServerInstance->Modules->Attach(eventlist, this, 1); }