From fde3ed40a89bd67d379104c42b14c9b0d5e435fc Mon Sep 17 00:00:00 2001 From: Alex Noir Date: Tue, 5 Dec 2017 17:21:45 +0300 Subject: [PATCH] Prevent clients from chatting when unconscious on the serverside to prevent clients from "hacking" and enabling chat box. --- Barotrauma/BarotraumaShared/Source/Networking/ChatMessage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaShared/Source/Networking/ChatMessage.cs b/Barotrauma/BarotraumaShared/Source/Networking/ChatMessage.cs index 724739997..b908e54c5 100644 --- a/Barotrauma/BarotraumaShared/Source/Networking/ChatMessage.cs +++ b/Barotrauma/BarotraumaShared/Source/Networking/ChatMessage.cs @@ -185,7 +185,7 @@ namespace Barotrauma.Networking GameMain.Server.SendChatMessage(denyMsg, c); return; } - + if (c.Character != null && !c.Character.CanSpeak) return; GameMain.Server.SendChatMessage(txt, null, c); }