X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_clones.cpp;h=830d922320ce6d47b51f2d64f8b36a8a9ceb4a5e;hb=551d687ec6d7ce44be35fae0dd7345fe73c4f63a;hp=1e5841609fa875f8f9a8c45450aabb8b8120067b;hpb=553a8da754c8cd308bad2008018849714e70f9b7;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_clones.cpp b/src/modules/m_clones.cpp index 1e5841609..830d92232 100644 --- a/src/modules/m_clones.cpp +++ b/src/modules/m_clones.cpp @@ -21,9 +21,9 @@ #include "inspircd.h" -/* $ModDesc: Provides the /clones command to retrieve information on clones. */ +/* $ModDesc: Provides the /CLONES command to retrieve information on clones. */ -/** Handle /CHECK +/** Handle /CLONES */ class CommandClones : public Command { @@ -36,7 +36,7 @@ class CommandClones : public Command CmdResult Handle (const std::vector ¶meters, User *user) { - std::string clonesstr = "304 " + std::string(user->nick) + " :CLONES"; + std::string clonesstr = "304 " + user->nick + " :CLONES"; unsigned long limit = atoi(parameters[0].c_str()); @@ -44,7 +44,7 @@ class CommandClones : public Command * Syntax of a /clones reply: * :server.name 304 target :CLONES START * :server.name 304 target :CLONES - * :server.name 304 target :CHECK END + * :server.name 304 target :CLONES END */ user->WriteServ(clonesstr + " START"); @@ -63,27 +63,23 @@ class CommandClones : public Command } }; - class ModuleClones : public Module { - private: CommandClones cmd; public: ModuleClones() : cmd(this) { - ServerInstance->AddCommand(&cmd); } - virtual ~ModuleClones() + void init() { + ServerInstance->Modules->AddService(cmd); } virtual Version GetVersion() { - return Version("Provides the /clones command to retrieve information on clones.", VF_VENDOR); + return Version("Provides the /CLONES command to retrieve information on clones.", VF_VENDOR); } - - }; MODULE_INIT(ModuleClones)