From 20e2743926aafeae8104a0706806d36149574e8a Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Thu, 25 Feb 2016 18:18:22 +0100 Subject: m_clones Send numeric with User::WriteNumeric() --- src/modules/m_clones.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 ¶meters, 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; } -- cgit v1.2.3