diff options
| author | 2012-07-04 21:34:13 +0200 | |
|---|---|---|
| committer | 2013-04-12 21:03:04 +0200 | |
| commit | f4cd5fb72ad191a3708d3d39a4fc74cc1ae4377e (patch) | |
| tree | 46024e82c3dd201423e102bd7efe4f7a33524048 /src/modules/m_spanningtree/ping.cpp | |
| parent | m_spanningtree RSQUIT handler: Don't reimplement sending messages to remote u... (diff) | |
m_spanningtree atoi() to ConvToInt() conversion, add const where possible
Remove two redundant functions from Utils
Diffstat (limited to 'src/modules/m_spanningtree/ping.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/ping.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/ping.cpp b/src/modules/m_spanningtree/ping.cpp index aec680b23..3e05e6906 100644 --- a/src/modules/m_spanningtree/ping.cpp +++ b/src/modules/m_spanningtree/ping.cpp @@ -35,13 +35,12 @@ bool TreeSocket::LocalPing(const std::string &prefix, parameterlist ¶ms) return true; if (params.size() == 1) { - std::string stufftobounce = params[0]; - this->WriteLine(":"+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 |
