Prevent clients from chatting when unconscious on the serverside to prevent clients from "hacking" and enabling chat box.

This commit is contained in:
Alex Noir
2017-12-05 17:21:45 +03:00
parent a290a6a337
commit fde3ed40a8

View File

@@ -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);
}