summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-06-30 14:48:44 +0000
committerrubidium <rubidium@openttd.org>2008-06-30 14:48:44 +0000
commit6a216ee4f6b2ca9508ee96b48357a75746bff53d (patch)
treebc5227c46084482af2b88315ab5fabdff5b33c2b /src
parentecc5d648dfefd7949b7508c724790dd452814fb2 (diff)
downloadopenttd-6a216ee4f6b2ca9508ee96b48357a75746bff53d.tar.xz
(svn r13661) -Fix: server crashing when banning the rconning client.
Diffstat (limited to 'src')
-rw-r--r--src/console_cmds.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index fe69e759b..4589dd579 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -407,9 +407,9 @@ DEF_CONSOLE_CMD(ConBan)
}
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");
}