mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-10 08:00:05 +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) {
|
if (ci != NULL) {
|
||||||
|
IConsolePrint(CC_DEFAULT, "Client banned");
|
||||||
banip = GetPlayerIP(ci);
|
banip = GetPlayerIP(ci);
|
||||||
NetworkServerSendError(index, NETWORK_ERROR_KICKED);
|
NetworkServerSendError(index, NETWORK_ERROR_KICKED);
|
||||||
IConsolePrint(CC_DEFAULT, "Client banned");
|
|
||||||
} else {
|
} else {
|
||||||
IConsolePrint(CC_DEFAULT, "Client not online, banned IP");
|
IConsolePrint(CC_DEFAULT, "Client not online, banned IP");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user