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