]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_userip.cpp
Replace std::deque with std::vector in spanningtree and related modules
[user/henk/code/inspircd.git] / src / modules / m_userip.cpp
index 7ffeb383a1fbe4b7ab7adc5d7600e83bb1a8ef20..8600546bcbfa2a2730695e9b7d962675fe87b101 100644 (file)
@@ -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);
        }