summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/clientprotocolmsg.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/clientprotocolmsg.h b/include/clientprotocolmsg.h
index 53122cff9..144af9e44 100644
--- a/include/clientprotocolmsg.h
+++ b/include/clientprotocolmsg.h
@@ -668,9 +668,10 @@ struct ClientProtocol::Messages::Pong : public ClientProtocol::Message
Pong(const std::string& cookie, const std::string& server = "")
: ClientProtocol::Message("PONG", ServerInstance->Config->GetServerName())
{
- PushParamRef(ServerInstance->Config->GetServerName());
- if (!server.empty())
- PushParamRef(server);
+ if (server.empty())
+ PushParamRef(ServerInstance->Config->GetServerName());
+ else
+ PushParam(server);
PushParamRef(cookie);
}
};