]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_clones.cpp
The module hook is kinda required.
[user/henk/code/inspircd.git] / src / modules / m_clones.cpp
index a2b4e35fa46abe073960405da110d8f01fca02f5..ebf98d3e8ec1ebf226f3302b8b3c52b4fe6763c2 100644 (file)
@@ -12,9 +12,8 @@
  */
 
 #include "inspircd.h"
-#include "wildcard.h"
 
-/* $ModDesc: Provides the /clones command to retrieve information on a user, channel, or IP address */
+/* $ModDesc: Provides the /clones command to retrieve information on clones. */
 
 /** Handle /CHECK
  */
@@ -27,12 +26,12 @@ class CommandClones : public Command
                syntax = "<limit>";
        }
 
-       CmdResult Handle (const char* const* parameters, int pcnt, User *user)
+       CmdResult Handle (const std::vector<std::string> &parameters, User *user)
        {
 
                std::string clonesstr = "304 " + std::string(user->nick) + " :CLONES";
 
-               unsigned long limit = atoi(parameters[0]);
+               unsigned long limit = atoi(parameters[0].c_str());
 
                /*
                 * Syntax of a /clones reply:
@@ -65,22 +64,22 @@ class ModuleClones : public Module
  public:
        ModuleClones(InspIRCd* Me) : Module(Me)
        {
-               
+
                mycommand = new CommandClones(ServerInstance);
                ServerInstance->AddCommand(mycommand);
 
        }
-       
+
        virtual ~ModuleClones()
        {
        }
-       
+
        virtual Version GetVersion()
        {
-               return Version(1, 1, 0, 0, VF_VENDOR, API_VERSION);
+               return Version("$Id$", VF_VENDOR, API_VERSION);
        }
 
-       
+
 };
 
 MODULE_INIT(ModuleClones)