Make messages have a capital letter at the start (#1952)

This commit is contained in:
RemberBL 2020-08-28 15:00:49 +02:00 committed by GitHub
parent fb0ac3d70e
commit 56909d3392
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -109,6 +109,9 @@ namespace Content.Server.Chat
message = handler(source, message);
}
// Ensure the first letter inside the message string is always a capital letter
message = message[0].ToString().ToUpper() + message.Remove(0,1);
var pos = source.Transform.GridPosition;
var clients = _playerManager.GetPlayersInRange(pos, VoiceRange).Select(p => p.ConnectedClient);