X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_clones.cpp;h=1f505e9a21dbc4d3a0e7b1463e174ea879cce298;hb=8af4a2795befd73e1b3bf048560054d8fb7fc0f4;hp=1e5841609fa875f8f9a8c45450aabb8b8120067b;hpb=46a39046196f55b52336e19662bb7bac85b731ac;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_clones.cpp b/src/modules/m_clones.cpp index 1e5841609..1f505e9a2 100644 --- a/src/modules/m_clones.cpp +++ b/src/modules/m_clones.cpp @@ -21,9 +21,7 @@ #include "inspircd.h" -/* $ModDesc: Provides the /clones command to retrieve information on clones. */ - -/** Handle /CHECK +/** Handle /CLONES */ class CommandClones : public Command { @@ -36,7 +34,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 +42,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 +61,18 @@ class CommandClones : public Command } }; - class ModuleClones : public Module { - private: CommandClones cmd; public: ModuleClones() : cmd(this) { - ServerInstance->AddCommand(&cmd); } - virtual ~ModuleClones() + Version GetVersion() CXX11_OVERRIDE { + return Version("Provides the /CLONES command to retrieve information on clones.", VF_VENDOR); } - - virtual Version GetVersion() - { - return Version("Provides the /clones command to retrieve information on clones.", VF_VENDOR); - } - - }; MODULE_INIT(ModuleClones)