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 | a11f46fed48fa6606f2d84c8f96d79efbad83197 (patch) | |
tree | 9f7b9f8c971ff9369911613d44bb0367e7d30389 /network.h | |
parent | 5d065845453b47791afec27a373b9ff9728ead1e (diff) | |
download | openttd-a11f46fed48fa6606f2d84c8f96d79efbad83197.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 |