summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-02-25 18:18:22 +0100
committerAttila Molnar <attilamolnar@hush.com>2016-02-25 18:18:22 +0100
commit20e2743926aafeae8104a0706806d36149574e8a (patch)
tree6da3fa391d6a6595ee16424321fe4836ffd9cdde /src
parent79cb679749517648ad3729d973fe90cd9346d752 (diff)
m_clones Send numeric with User::WriteNumeric()
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_clones.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_clones.cpp b/src/modules/m_clones.cpp
index c51c8d3b4..b3e695bfd 100644
--- a/src/modules/m_clones.cpp
+++ b/src/modules/m_clones.cpp
@@ -34,7 +34,7 @@ class CommandClones : public Command
CmdResult Handle (const std::vector<std::string> &parameters, User *user)
{
- std::string clonesstr = "304 " + user->nick + " :CLONES";
+ std::string clonesstr = "CLONES ";
unsigned long limit = atoi(parameters[0].c_str());
@@ -45,7 +45,7 @@ class CommandClones : public Command
* :server.name 304 target :CLONES END
*/
- user->WriteServ(clonesstr + " START");
+ user->WriteNumeric(304, clonesstr + "START");
/* hostname or other */
const UserManager::CloneMap& clonemap = ServerInstance->Users->GetCloneMap();
@@ -53,10 +53,10 @@ class CommandClones : public Command
{
const UserManager::CloneCounts& counts = i->second;
if (counts.global >= limit)
- user->WriteServ(clonesstr + " " + ConvToStr(counts.global) + " " + i->first.str());
+ user->WriteNumeric(304, clonesstr + ConvToStr(counts.global) + " " + i->first.str());
}
- user->WriteServ(clonesstr + " END");
+ user->WriteNumeric(304, clonesstr + "END");
return CMD_SUCCESS;
}