diff options
author | truelight <truelight@openttd.org> | 2005-01-02 12:03:43 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-01-02 12:03:43 +0000 |
commit | 5eeab7fcfe4c0da2b2514b6cd34fdc4bcdf372b5 (patch) | |
tree | 9f7b9f8c971ff9369911613d44bb0367e7d30389 /network.h | |
parent | 25752eabfe6783042a77ef2654d21e23a57fe9c5 (diff) | |
download | openttd-5eeab7fcfe4c0da2b2514b6cd34fdc4bcdf372b5.tar.xz |
(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'.
Diffstat (limited to 'network.h')
-rw-r--r-- | network.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |