Mercurial > hg > openttd
changeset 19104:84b69a668651 draft
(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)
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 16 Feb 2012 20:45:03 +0000 |
parents | a662e984940f |
children | edee3df1ecc9 |
files | src/network/network_server.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/network/network_server.cpp +++ b/src/network/network_server.cpp @@ -1330,7 +1330,7 @@ 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 */ return this->SendError(NETWORK_ERROR_NOT_AUTHORIZED); }