diff options
| author | 2021-05-14 16:54:33 +0100 | |
|---|---|---|
| committer | 2021-05-14 16:54:33 +0100 | |
| commit | 7a712456f1b7debbf72649dd7c03e05b56f17461 (patch) | |
| tree | cab844135f30ec8f1dad4e21940566a04feafa64 /include/clientprotocolmsg.h | |
| parent | Refactor the DNSBL config storage class. (diff) | |
| parent | Release v3.10.0. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'include/clientprotocolmsg.h')
| -rw-r--r-- | include/clientprotocolmsg.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/include/clientprotocolmsg.h b/include/clientprotocolmsg.h index 0cb3cfa3c..a0c2751ee 100644 --- a/include/clientprotocolmsg.h +++ b/include/clientprotocolmsg.h @@ -1,7 +1,7 @@ /* * InspIRCd -- Internet Relay Chat Daemon * - * Copyright (C) 2018, 2020 Sadie Powell <sadie@witchery.services> + * Copyright (C) 2018, 2020-2021 Sadie Powell <sadie@witchery.services> * Copyright (C) 2018 Attila Molnar <attilamolnar@hush.com> * * This file is part of InspIRCd. InspIRCd is free software: you can @@ -663,14 +663,12 @@ struct ClientProtocol::Messages::Pong : public ClientProtocol::Message { /** Constructor. * @param cookie Ping cookie. Must remain valid as long as this object is alive. - * @param server Pinged server. Must remain valid as long as this object is alive if non-empty. + * @param server Pinged server. Must remain valid as long as this object is alive. */ Pong(const std::string& cookie, const std::string& server = "") : ClientProtocol::Message("PONG", ServerInstance->Config->GetServerName()) { - PushParamRef(ServerInstance->Config->GetServerName()); - if (!server.empty()) - PushParamRef(server); + PushParamRef(server); PushParamRef(cookie); } }; |
