Prevent unecessary channel change in controller

This commit is contained in:
Dominion
2022-10-13 11:54:23 -04:00
parent 64155fdef4
commit 63971ce75f
@@ -336,7 +336,7 @@ namespace Tgstation.Server.Host.Controllers
if (anySettingsModified)
await chat.ChangeSettings(current, cancellationToken); // have to rebuild the thing first
if (model.Channels != null || anySettingsModified)
if ((model.Channels != null || anySettingsModified) && current.Enabled.Value)
await chat.ChangeChannels(current.Id.Value, current.Channels, cancellationToken);
return null;