Spam filter

Should help against teamgamerfood, next up might be fixing the password authentication since some people say it's ineffective.
This commit is contained in:
juanjp600
2016-08-28 09:58:30 -03:00
parent 712953cc9e
commit 88facd65de
3 changed files with 134 additions and 12 deletions

View File

@@ -664,8 +664,8 @@ namespace Barotrauma.Networking
break;
case (byte)PacketTypes.Chatmessage:
//ChatMessageType messageType = (ChatMessageType)inc.ReadByte();
AddChatMessage(ChatMessage.ReadNetworkMessage(inc));
var chatMsg = ChatMessage.ReadNetworkMessage(inc);
AddChatMessage(chatMsg);
break;
case (byte)PacketTypes.NetworkEvent:
//read the data from the message and update client state accordingly