From dbb2950e831c1c2dca33eba1f600ef7c68a69fcd Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 22 Dec 2008 21:26:26 +0000 Subject: (svn r14716) -Codechange: move more network core querying to the network files. --- src/network/network_client.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/network/network_client.cpp') diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp index 1ef35508b..6f14efd80 100644 --- a/src/network/network_client.cpp +++ b/src/network/network_client.cpp @@ -974,4 +974,19 @@ bool NetworkClientPreferTeamChat(const NetworkClientInfo *cio) return false; } +/** + * Print all the clients to the console + */ +void NetworkPrintClients() +{ + NetworkClientInfo *ci; + FOR_ALL_ACTIVE_CLIENT_INFOS(ci) { + IConsolePrintF(CC_INFO, "Client #%1d name: '%s' company: %1d IP: %s", + ci->client_id, + ci->client_name, + ci->client_playas + (IsValidCompanyID(ci->client_playas) ? 1 : 0), + GetClientIP(ci)); + } +} + #endif /* ENABLE_NETWORK */ -- cgit v1.2.3-70-g09d2