Trim spaces from name

Some troll exploited this on Landon's public server, so here's a fix.
This commit is contained in:
juanjp600
2016-11-19 22:15:58 -03:00
parent 6ca605aa57
commit 2d6196b5f0

View File

@@ -90,6 +90,7 @@ namespace Barotrauma.Networking
public static string SanitizeName(string name)
{
name = name.Trim();
if (name.Length > 20)
{
name = name.Substring(0, 20);