]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/ping.cpp
m_spanningtree Introduce new function to send channel messages
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / ping.cpp
index 97cc44b6fff28224d097166c3e1d1d9c5570c900..3e05e6906cf7fbd7cb9526e1e206c109a143013d 100644 (file)
@@ -35,13 +35,12 @@ bool TreeSocket::LocalPing(const std::string &prefix, parameterlist &params)
                return true;
        if (params.size() == 1)
        {
-               std::string stufftobounce = params[0];
-               this->WriteLine(std::string(":")+ServerInstance->Config->GetSID()+" PONG "+stufftobounce);
+               this->WriteLine(":"+ServerInstance->Config->GetSID()+" PONG "+params[0]);
                return true;
        }
        else
        {
-               std::string forwardto = params[1];
+               const std::string& forwardto = params[1];
                if (forwardto == ServerInstance->Config->ServerName || forwardto == ServerInstance->Config->GetSID())
                {
                        // this is a ping for us, send back PONG to the requesting server