mirror of https://github.com/OpenTTD/OpenTTD
(svn r23958) -Fix: don't allow chat messages from pre-active clients. As they haven't got the savegame yet, they won't have the interface to send them either (dihedral)
parent
c5f7a0f69d
commit
ea2f19d4f2
|
@ -1330,7 +1330,7 @@ void NetworkServerSendChat(NetworkAction action, DestType desttype, int dest, co
|
||||||
|
|
||||||
NetworkRecvStatus ServerNetworkGameSocketHandler::Receive_CLIENT_CHAT(Packet *p)
|
NetworkRecvStatus ServerNetworkGameSocketHandler::Receive_CLIENT_CHAT(Packet *p)
|
||||||
{
|
{
|
||||||
if (this->status < STATUS_AUTHORIZED) {
|
if (this->status < STATUS_PRE_ACTIVE) {
|
||||||
/* Illegal call, return error and ignore the packet */
|
/* Illegal call, return error and ignore the packet */
|
||||||
return this->SendError(NETWORK_ERROR_NOT_AUTHORIZED);
|
return this->SendError(NETWORK_ERROR_NOT_AUTHORIZED);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue