(svn r3408) - Ok, compile before you commit; sorry (fix previous commit)
authorDarkvater
Thu, 19 Jan 2006 16:12:24 +0000
changeset 2860 3166189ae39f
parent 2859 d45695cd3e98
child 2861 c7e2c8217fed
(svn r3408) - Ok, compile before you commit; sorry (fix previous commit)
console_cmds.c
--- a/console_cmds.c	Thu Jan 19 15:58:57 2006 +0000
+++ b/console_cmds.c	Thu Jan 19 16:12:24 2006 +0000
@@ -374,9 +374,9 @@
 
 	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 @@
 	}
 
 	if (index == 0) {
-		IConsoleError("Invalid Client-ID");
+		IConsoleError("Invalid client");
 		return true;
 	}
 
@@ -402,7 +402,7 @@
 
 		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 @@
 
 	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 @@
 	}
 
 	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;
 }