Fix semicolon only message (#7695)

This commit is contained in:
Alex Evgrashin
2022-04-22 01:31:51 +03:00
committed by GitHub
parent d8fe577464
commit 98c03570ca

View File

@@ -334,6 +334,10 @@ public sealed class ChatSystem : EntitySystem
{
if (message.StartsWith(';'))
{
// Special case for ";" messages
if (message.Length == 1)
return "";
// Remove semicolon
message = message.Substring(1).TrimStart();