diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-08-19 20:22:15 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-08-27 15:33:05 +0200 |
commit | 7e7e773d4d43e68c18c19e2ec712f4250e5f756d (patch) | |
tree | a446c63b439f3854ad2da6d8bd8d4dce9715b38a /src/modules/m_spanningtree/ping.cpp | |
parent | 27ecc025acf7b01f51b2ecc32c28180dc49d793c (diff) |
m_spanningtree Introduce command builders
Diffstat (limited to 'src/modules/m_spanningtree/ping.cpp')
-rw-r--r-- | src/modules/m_spanningtree/ping.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<std::string>& 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; } |