Chat fixes (#10051)

This commit is contained in:
Kara
2022-07-26 16:49:23 -07:00
committed by GitHub
parent 2ca8f8ac80
commit 7e57dd987e
2 changed files with 15 additions and 5 deletions

View File

@@ -73,6 +73,9 @@ public sealed partial class ChatSystem
chan = _prototypeManager.Index<RadioChannelPrototype>("Common");
}
// Re-capitalize message since we removed the prefix.
message = SanitizeMessageCapital(source, message);
if (_inventory.TryGetSlotEntity(source, "ears", out var entityUid) &&
TryComp(entityUid, out HeadsetComponent? headset))
{