summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2012-02-16 20:45:03 +0000
committerrubidium <rubidium@openttd.org>2012-02-16 20:45:03 +0000
commitea2f19d4f28d5758626dc58b497b933e01e106af (patch)
tree19f11fff8c1e4c4d079bb321fad1b7483a065471 /src
parentc5f7a0f69def4f713c25efb05d8acde0956923c0 (diff)
downloadopenttd-ea2f19d4f28d5758626dc58b497b933e01e106af.tar.xz
(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)
Diffstat (limited to 'src')
-rw-r--r--src/network/network_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp
index a6c87405e..8cd1a5921 100644
--- a/src/network/network_server.cpp
+++ b/src/network/network_server.cpp
@@ -1330,7 +1330,7 @@ void NetworkServerSendChat(NetworkAction action, DestType desttype, int dest, co
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);
}