From cde07b5c500f7e80fd14f5cf689b5553ed0920f5 Mon Sep 17 00:00:00 2001 From: Salanto <62221668+Salanto@users.noreply.github.com> Date: Wed, 16 Feb 2022 00:52:48 +0100 Subject: [PATCH] Add server description to the PN packet (#230) * Add SDESC packet This packet allows servers to overwrite the server description, allowing them to display them even in the favourites menu. * Un-Add SDESC and hijack PN to supply description --- core/src/packets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/packets.cpp b/core/src/packets.cpp index d1f3d6c..2520173 100644 --- a/core/src/packets.cpp +++ b/core/src/packets.cpp @@ -74,7 +74,7 @@ void AOClient::pktSoftwareId(AreaData* area, int argc, QStringList argv, AOPacke m_version.minor = l_match.captured(3).toInt(); } - sendPacket("PN", {QString::number(server->m_player_count), QString::number(ConfigManager::maxPlayers())}); + sendPacket("PN", {QString::number(server->m_player_count), QString::number(ConfigManager::maxPlayers()), ConfigManager::serverDescription()}); sendPacket("FL", l_feature_list); if (ConfigManager::assetUrl().isValid()) {