summaryrefslogtreecommitdiff
path: root/src/console_cmds.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-12-22 21:26:26 +0000
committerrubidium <rubidium@openttd.org>2008-12-22 21:26:26 +0000
commit573d1b324a1b919efa76763c94bdf3075bd2bfa8 (patch)
treeb491caf9bf4a134ae72e13337a00c518804cd8b6 /src/console_cmds.cpp
parent5b7cd460e9b75838de5732a56a01ad6311356cb3 (diff)
downloadopenttd-573d1b324a1b919efa76763c94bdf3075bd2bfa8.tar.xz
(svn r14716) -Codechange: move more network core querying to the network files.
Diffstat (limited to 'src/console_cmds.cpp')
-rw-r--r--src/console_cmds.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 6c362d51f..33bc681d4 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -638,19 +638,12 @@ DEF_CONSOLE_CMD(ConResetCompany)
DEF_CONSOLE_CMD(ConNetworkClients)
{
- NetworkClientInfo *ci;
-
if (argc == 0) {
IConsoleHelp("Get a list of connected clients including their ID, name, company-id, and IP. Usage: 'clients'");
return true;
}
- 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));
- }
+ NetworkPrintClients();
return true;
}