X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_clones.cpp;h=92b1bda78fb8a8d4d186a072405c1a56340294ed;hb=a785f350fd584d87f3b84bbaff569ecb59c29f04;hp=1e5841609fa875f8f9a8c45450aabb8b8120067b;hpb=fcacc8e0306382bc3f938073092c3729d77e2b41;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_clones.cpp b/src/modules/m_clones.cpp index 1e5841609..92b1bda78 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"); @@ -71,7 +71,11 @@ class ModuleClones : public Module public: ModuleClones() : cmd(this) { - ServerInstance->AddCommand(&cmd); + } + + void init() + { + ServerInstance->Modules->AddService(cmd); } virtual ~ModuleClones() @@ -80,7 +84,7 @@ class ModuleClones : public Module 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); }