xlxd 2.3.5

Updated YSF server status protocol
This commit is contained in:
LX3JL 2020-01-08 19:28:54 +01:00
parent 72eeaafc87
commit be87d54897
2 changed files with 3 additions and 2 deletions

View File

@ -948,6 +948,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
@ -961,7 +962,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());

View File

@ -49,7 +49,7 @@
#define VERSION_MAJOR 2
#define VERSION_MINOR 3
#define VERSION_REVISION 4
#define VERSION_REVISION 5
// global ------------------------------------------------------