truncate name if longer than 10 chars
This commit is contained in:
@@ -270,6 +270,11 @@ namespace OpenRA.Server
|
||||
SendChatTo( conn, "Blank names are not permitted." );
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user