sanitize player names

This commit is contained in:
Matthias Mailänder
2015-05-10 19:52:56 +02:00
parent 78f1e9fb2f
commit 736b169319
6 changed files with 49 additions and 6 deletions

View File

@@ -152,6 +152,9 @@ namespace OpenRA.Network
break;
}
Game.Settings.Player.Name = Settings.SanitizedPlayerName(Game.Settings.Player.Name);
Game.Settings.Save();
// Otherwise send the handshake with our current settings and let the server reject us
var info = new Session.Client()
{