Another chat system sanitization fix (#7384)

This commit is contained in:
mirrorcult
2022-04-01 20:09:54 -07:00
committed by GitHub
parent f3dd284ee5
commit 8eee60da3a

View File

@@ -99,6 +99,10 @@ public sealed class ChatSystem : EntitySystem
SendEntityEmote(source, emoteStr, hideChat);
}
// This can happen if the entire string is sanitized out.
if (string.IsNullOrEmpty(message))
return;
// Otherwise, send whatever type.
switch (desiredType)
{