forked from mirror/OpenTTD
(svn r1322) -Add: banning system (mostly tnx to guru3)
A server can ban people via ClientList Both server and dedicated can do it via console: 'ban', 'unban', 'banlist'.
This commit is contained in:
@@ -194,6 +194,8 @@ NetworkGameList *NetworkQueryServer(const byte* host, unsigned short port, bool
|
||||
// Those variables must always be registered!
|
||||
#define MAX_SAVED_SERVERS 10
|
||||
VARDEF char *_network_host_list[MAX_SAVED_SERVERS];
|
||||
#define MAX_BANS 25
|
||||
VARDEF char *_network_ban_list[MAX_BANS];
|
||||
VARDEF bool _networking;
|
||||
VARDEF bool _network_available; // is network mode available?
|
||||
VARDEF bool _network_server; // network-server is active
|
||||
|
Reference in New Issue
Block a user