(svn r13661) -Fix: server crashing when banning the rconning client.
authorrubidium
Mon, 30 Jun 2008 14:48:44 +0000
changeset 9608 754cb1e0e833
parent 9607 5a5728fb702a
child 9609 91e0b517b498
(svn r13661) -Fix: server crashing when banning the rconning client.
src/console_cmds.cpp
--- a/src/console_cmds.cpp	Sat Jun 28 15:44:24 2008 +0000
+++ b/src/console_cmds.cpp	Mon Jun 30 14:48:44 2008 +0000
@@ -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");
 	}