X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_clones.cpp;h=ebf98d3e8ec1ebf226f3302b8b3c52b4fe6763c2;hb=697098bb47651b40ed9c768361d1a3b1ca452856;hp=eff9ed9af13aa630f15dd82570a0a76ac2ab17ea;hpb=c2957516bca0fe70622c7668a12ade68576ddab2;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_clones.cpp b/src/modules/m_clones.cpp index eff9ed9af..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, 2, 0, 0, VF_VENDOR, API_VERSION); + return Version("$Id$", VF_VENDOR, API_VERSION); } - + }; MODULE_INIT(ModuleClones)