X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_spanningtree%2Fping.cpp;h=878f8af3a3bdc2b8b44fc40cd58256a8665e472a;hb=f9fd78c01623514a060c607534fc52cb73140200;hp=537efe96466488af37948961335f9ae38d6c42ca;hpb=b14ebbccf08ec34a73e1ba271e67da80d9fe805c;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_spanningtree/ping.cpp b/src/modules/m_spanningtree/ping.cpp index 537efe964..878f8af3a 100644 --- a/src/modules/m_spanningtree/ping.cpp +++ b/src/modules/m_spanningtree/ping.cpp @@ -29,15 +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; } - -