mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-16 11:09:11 +00:00
(svn r13661) -Fix: server crashing when banning the rconning client.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user