]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_clones.cpp
Forward port r10133.
[user/henk/code/inspircd.git] / src / modules / m_clones.cpp
index eff9ed9af13aa630f15dd82570a0a76ac2ab17ea..82bdf55500ffb46a23c116c17f50d21ad55c6b0d 100644 (file)
@@ -14,7 +14,7 @@
 #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 +27,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 +65,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, 2, 0, 0, VF_VENDOR, API_VERSION);
        }
 
-       
+
 };
 
 MODULE_INIT(ModuleClones)