truncate name if longer than 10 chars
This commit is contained in:
@@ -271,6 +271,11 @@ namespace OpenRA.Server
|
||||
return true;
|
||||
}
|
||||
|
||||
if (s.Length > 10)
|
||||
{
|
||||
s = s.Substring(0,10);
|
||||
}
|
||||
|
||||
Console.WriteLine("Player@{0} is now known as {1}", conn.socket.RemoteEndPoint, s);
|
||||
GetClient(conn).Name = s;
|
||||
SyncLobbyInfo();
|
||||
|
||||
Reference in New Issue
Block a user