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

@@ -286,7 +286,7 @@ namespace OpenRA.Server
var client = new Session.Client()
{
Name = handshake.Client.Name,
Name = OpenRA.Settings.SanitizedPlayerName(handshake.Client.Name),
IpAddress = ((IPEndPoint)newConn.Socket.RemoteEndPoint).Address.ToString(),
Index = newConn.PlayerIndex,
Slot = LobbyInfo.FirstEmptySlot(),