summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-01-19 16:12:24 +0000
committerDarkvater <darkvater@openttd.org>2006-01-19 16:12:24 +0000
commit6971aee967b53da11a432f91103847da1db80e22 (patch)
tree2e79b0a1da593926e4fa5fab9f3c9d6b000409f8
parenta292621b14db827595548463d9e521c59b4d1e4b (diff)
downloadopenttd-6971aee967b53da11a432f91103847da1db80e22.tar.xz
(svn r3408) - Ok, compile before you commit; sorry (fix previous commit)
-rw-r--r--console_cmds.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/console_cmds.c b/console_cmds.c
index 6f7e7cb90..b521ac902 100644
--- a/console_cmds.c
+++ b/console_cmds.c
@@ -374,9 +374,9 @@ DEF_CONSOLE_CMD(ConBan)
if (strchr(argv[1], '.') == NULL) {
index = atoi(argv[1]);
- ci = NetworkFindClientFromIndex(index);
+ ci = NetworkFindClientInfoFromIndex(index);
} else {
- ci = NetworkFindClientFromIP(argv[1]);
+ ci = NetworkFindClientInfoFromIP(argv[1]);
index = (ci == NULL) ? 0 : ci->client_index;
}
@@ -386,7 +386,7 @@ DEF_CONSOLE_CMD(ConBan)
}
if (index == 0) {
- IConsoleError("Invalid Client-ID");
+ IConsoleError("Invalid client");
return true;
}
@@ -402,7 +402,7 @@ DEF_CONSOLE_CMD(ConBan)
SEND_COMMAND(PACKET_SERVER_ERROR)(NetworkFindClientStateFromIndex(index), NETWORK_ERROR_KICKED);
} else
- IConsoleError("Client-ID not found");
+ IConsoleError("Client not found");
return true;
}
@@ -542,9 +542,9 @@ DEF_CONSOLE_CMD(ConKick)
if (strchr(argv[1], '.') == NULL) {
index = atoi(argv[1]);
- ci = NetworkFindClientFromIndex(index);
+ ci = NetworkFindClientInfoFromIndex(index);
} else {
- ci = NetworkFindClientFromIP(argv[1]);
+ ci = NetworkFindClientInfoFromIP(argv[1]);
index = (ci == NULL) ? 0 : ci->client_index;
}
@@ -554,14 +554,14 @@ DEF_CONSOLE_CMD(ConKick)
}
if (index == 0) {
- IConsoleError("Invalid client-id");
+ IConsoleError("Invalid client");
return true;
}
if (ci != NULL) {
SEND_COMMAND(PACKET_SERVER_ERROR)(NetworkFindClientStateFromIndex(index), NETWORK_ERROR_KICKED);
} else
- IConsoleError("Client-id not found");
+ IConsoleError("Client not found");
return true;
}