]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/ping.cpp
core_hostname_lookup: find answer record of the correct type instead of assuming...
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / ping.cpp
index 537efe96466488af37948961335f9ae38d6c42ca..878f8af3a3bdc2b8b44fc40cd58256a8665e472a 100644 (file)
@@ -29,15 +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;
 }
-
-