(svn r13661) -Fix: server crashing when banning the rconning client.

This commit is contained in:
rubidium
2008-06-30 14:48:44 +00:00
parent cfdc710104
commit 6d1b927814

View File

@@ -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");
}