]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_clones.cpp
Update m_cloaking to use free-form keys instead of weakening the hash IV
[user/henk/code/inspircd.git] / src / modules / m_clones.cpp
index 82bdf55500ffb46a23c116c17f50d21ad55c6b0d..9742ea29d6c714797c01229c871f952a71a6c16b 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.
@@ -12,7 +12,6 @@
  */
 
 #include "inspircd.h"
-#include "wildcard.h"
 
 /* $ModDesc: Provides the /clones command to retrieve information on clones. */
 
 class CommandClones : public Command
 {
  public:
-       CommandClones (InspIRCd* Instance) : Command(Instance,"CLONES", "o", 1)
+       CommandClones(Module* Creator) : Command(Creator,"CLONES", 1)
        {
-               this->source = "m_clones.so";
-               syntax = "<limit>";
+               flags_needed = 'o'; syntax = "<limit>";
        }
 
        CmdResult Handle (const std::vector<std::string> &parameters, User *user)
@@ -53,7 +51,7 @@ class CommandClones : public Command
 
                user->WriteServ(clonesstr + " END");
 
-               return CMD_LOCALONLY;
+               return CMD_SUCCESS;
        }
 };
 
@@ -61,14 +59,11 @@ class CommandClones : public Command
 class ModuleClones : public Module
 {
  private:
-       CommandClones *mycommand;
+       CommandClones cmd;
  public:
-       ModuleClones(InspIRCd* Me) : Module(Me)
+       ModuleClones() : cmd(this)
        {
-
-               mycommand = new CommandClones(ServerInstance);
-               ServerInstance->AddCommand(mycommand);
-
+               ServerInstance->AddCommand(&cmd);
        }
 
        virtual ~ModuleClones()
@@ -77,7 +72,7 @@ class ModuleClones : public Module
 
        virtual Version GetVersion()
        {
-               return Version(1, 2, 0, 0, VF_VENDOR, API_VERSION);
+               return Version("Provides the /clones command to retrieve information on clones.", VF_VENDOR, API_VERSION);
        }