summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network/network_server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp
index ebf78a320..9780a537e 100644
--- a/src/network/network_server.cpp
+++ b/src/network/network_server.cpp
@@ -702,6 +702,8 @@ NetworkRecvStatus ServerNetworkGameSocketHandler::SendCommand(const CommandPacke
*/
NetworkRecvStatus ServerNetworkGameSocketHandler::SendChat(NetworkAction action, ClientID client_id, bool self_send, const char *msg, int64 data)
{
+ if (this->status != STATUS_ACTIVE) return NETWORK_RECV_STATUS_OKAY;
+
Packet *p = new Packet(PACKET_SERVER_CHAT);
p->Send_uint8 (action);