From 7e7e773d4d43e68c18c19e2ec712f4250e5f756d Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Mon, 19 Aug 2013 20:22:15 +0200 Subject: m_spanningtree Introduce command builders --- src/modules/m_spanningtree/ping.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_spanningtree/ping.cpp') diff --git a/src/modules/m_spanningtree/ping.cpp b/src/modules/m_spanningtree/ping.cpp index 537efe964..6d8893acf 100644 --- a/src/modules/m_spanningtree/ping.cpp +++ b/src/modules/m_spanningtree/ping.cpp @@ -29,13 +29,13 @@ CmdResult CommandPing::Handle(User* user, std::vector& params) if (params[0] == ServerInstance->Config->GetSID()) { // PING for us, reply with a PONG - parameterlist reply; + CmdBuilder reply("PONG"); reply.push_back(user->uuid); if (params.size() >= 2) // If there is a second parameter, append it reply.push_back(params[1]); - Utils->DoOneToOne(params[0], "PONG", reply, user->server); + reply.Unicast(user); } return CMD_SUCCESS; } -- cgit v1.3.1-10-gc9f91