From 98c03570ca655c1376fde48d6cf7b229536ce5d1 Mon Sep 17 00:00:00 2001 From: Alex Evgrashin Date: Fri, 22 Apr 2022 01:31:51 +0300 Subject: [PATCH] Fix semicolon only message (#7695) --- Content.Server/Chat/ChatSystem.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Content.Server/Chat/ChatSystem.cs b/Content.Server/Chat/ChatSystem.cs index fffc299d2b..f685ef9a66 100644 --- a/Content.Server/Chat/ChatSystem.cs +++ b/Content.Server/Chat/ChatSystem.cs @@ -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();