From b885ea34772d36789e3cd45bdd152d14aaaecfb1 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Sun, 5 Sep 2021 19:50:26 -0400 Subject: [PATCH] Prevent private channels from being broadcast to Fixes #1316 --- src/Tgstation.Server.Host/Components/Chat/ChatManager.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Components/Chat/ChatManager.cs b/src/Tgstation.Server.Host/Components/Chat/ChatManager.cs index 26b2386157..657fc57256 100644 --- a/src/Tgstation.Server.Host/Components/Chat/ChatManager.cs +++ b/src/Tgstation.Server.Host/Components/Chat/ChatManager.cs @@ -501,7 +501,10 @@ namespace Tgstation.Server.Host.Components.Chat : $"TGS: Updating to version {updateVersion}..."; List wdChannels; lock (mappedChannels) // so it doesn't change while we're using it - wdChannels = mappedChannels.Select(x => x.Key).ToList(); + wdChannels = mappedChannels + .Where(x => !x.Value.Channel.IsPrivateChannel) + .Select(x => x.Key) + .ToList(); return SendMessage(message, wdChannels, cancellationToken); }