]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/ping.cpp
Lower the acceptable drift for clocks on link.
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / ping.cpp
index 6d8893acfa9ba036c64ab4b91fc013f101c1cf70..51e87874d202d952138da7ab438df1656291163e 100644 (file)
 #include "commands.h"
 #include "utils.h"
 
-CmdResult CommandPing::Handle(User* user, std::vector<std::string>& params)
+CmdResult CommandPing::Handle(User* user, Params& params)
 {
        if (params[0] == ServerInstance->Config->GetSID())
        {
                // PING for us, reply with a PONG
                CmdBuilder reply("PONG");
-               reply.push_back(user->uuid);
+               reply.push(user->uuid);
                if (params.size() >= 2)
                        // If there is a second parameter, append it
-                       reply.push_back(params[1]);
+                       reply.push(params[1]);
 
                reply.Unicast(user);
        }
        return CMD_SUCCESS;
 }
-
-