From e611fee4e50ac5447e5ede0a78d578c031530a6a Mon Sep 17 00:00:00 2001 From: Darkvater Date: Wed, 19 Oct 2005 19:38:35 +0000 Subject: (svn r3067) - Feature: allow unbanning players based on banlist-id (as well as IP). - Feature: 'status' and 'clients' now show the IP of the players --- network_server.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'network_server.h') diff --git a/network_server.h b/network_server.h index e603acb64..2c14b8c4e 100644 --- a/network_server.h +++ b/network_server.h @@ -20,6 +20,8 @@ void NetworkServer_Tick(bool send_frame); void NetworkServerMonthlyLoop(void); void NetworkServerYearlyLoop(void); +static inline const char* GetPlayerIP(const NetworkClientInfo *ci) {return inet_ntoa(*(struct in_addr *)&ci->client_ip);} + #endif /* ENABLE_NETWORK */ #endif /* NETWORK_SERVER_H */ -- cgit v1.2.3-70-g09d2