changeset 9608:2be5d8859e39 draft

(svn r13661) -Fix: server crashing when banning the rconning client.
author rubidium <rubidium@openttd.org>
date Mon, 30 Jun 2008 14:48:44 +0000
parents 3d6213e95b9a
children fe9766039f5b
files src/console_cmds.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -407,9 +407,9 @@
 	}
 
 	if (ci != NULL) {
+		IConsolePrint(CC_DEFAULT, "Client banned");
 		banip = GetPlayerIP(ci);
 		NetworkServerSendError(index, NETWORK_ERROR_KICKED);
-		IConsolePrint(CC_DEFAULT, "Client banned");
 	} else {
 		IConsolePrint(CC_DEFAULT, "Client not online, banned IP");
 	}