mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* Fixed bug where multiple of the same entries get added to the global ban/refuse list. * Fixed bug where we still use the client instance after deleting it in 'CBanSystem::BanListCheck()'. * Load banlist at a later state (not at construction of class), this is needed for a future change of adapting the 'business' code to feature the game's FileSystem. * CServer cleanup. * More detailed ban messages (banned, added to refused list, removed from slot, etc..). * Use localization key for banned message ("#Valve_Reject_Banned"). * Add const qualifiers to all CPylon methods. Note: * This commit requires changes on the master server, these changes are already performed, however the new master server isn't live yet until we publish the new release.
16 lines
605 B
C++
16 lines
605 B
C++
#pragma once
|
|
#include "serverlisting.h"
|
|
|
|
bool KeepAliveToPylon(const NetGameServer_t& netGameServer);
|
|
|
|
class CPylon
|
|
{
|
|
public:
|
|
vector<NetGameServer_t> GetServerList(string& svOutMessage) const;
|
|
bool GetServerByToken(NetGameServer_t& slOutServer, string& svOutMessage, const string& svToken) const;
|
|
bool PostServerHost(string& svOutMessage, string& svOutToken, const NetGameServer_t& slServerListing) const;
|
|
bool KeepAlive(const NetGameServer_t& netGameServer) const;
|
|
bool CheckForBan(const string& svIpAddress, const uint64_t nNucleusID, string& svOutReason) const;
|
|
};
|
|
extern CPylon* g_pMasterServer;
|