From b5ffe8b2c9b49490d17423021bed255b4517c7d8 Mon Sep 17 00:00:00 2001 From: LX3JL Date: Wed, 8 Jan 2020 19:28:54 +0100 Subject: [PATCH] xlxd 2.3.5 Updated YSF server status protocol --- src/cysfprotocol.cpp | 3 ++- src/main.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cysfprotocol.cpp b/src/cysfprotocol.cpp index ce8c104..8df84ca 100644 --- a/src/cysfprotocol.cpp +++ b/src/cysfprotocol.cpp @@ -953,6 +953,7 @@ bool CYsfProtocol::IsValidServerStatusPacket(const CBuffer &Buffer) const bool CYsfProtocol::EncodeServerStatusPacket(CBuffer *Buffer) const { uint8 tag[] = { 'Y','S','F','S' }; + uint8 description[] = { 'X','L','X',' ','r','e','f','l','e','c','t','o','r',' ' }; uint8 callsign[16]; // tag @@ -966,7 +967,7 @@ bool CYsfProtocol::EncodeServerStatusPacket(CBuffer *Buffer) const // name Buffer->Append(callsign, 16); // desscription - Buffer->Append(' ', 14); + Buffer->Append(description, 14); // connected clients CClients *clients = g_Reflector.GetClients(); int count = MIN(999, clients->GetSize()); diff --git a/src/main.h b/src/main.h index 0eadf9d..2da7421 100644 --- a/src/main.h +++ b/src/main.h @@ -52,7 +52,7 @@ #define VERSION_MAJOR 2 #define VERSION_MINOR 3 -#define VERSION_REVISION 4 +#define VERSION_REVISION 5 // global ------------------------------------------------------