Filter out Unicode and non-printable ASCII

+ return when authentication fails because of null client
This commit is contained in:
juanjp600
2016-08-28 16:01:23 -03:00
parent c51837ef30
commit d909a8d9b6
2 changed files with 15 additions and 1 deletions

View File

@@ -75,6 +75,7 @@ namespace Barotrauma.Networking
else
{
inc.SenderConnection.Disconnect("Authentication failed");
return;
}
DebugConsole.NewMessage("New player has joined the server", Color.White);