X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_clones.cpp;h=ebf98d3e8ec1ebf226f3302b8b3c52b4fe6763c2;hb=697098bb47651b40ed9c768361d1a3b1ca452856;hp=a2b4e35fa46abe073960405da110d8f01fca02f5;hpb=dd36852a52e8541306b76c5b88bce8ab9b36654c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_clones.cpp b/src/modules/m_clones.cpp index a2b4e35fa..ebf98d3e8 100644 --- a/src/modules/m_clones.cpp +++ b/src/modules/m_clones.cpp @@ -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 = ""; } - CmdResult Handle (const char* const* parameters, int pcnt, User *user) + CmdResult Handle (const std::vector ¶meters, 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)