mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 08:33:19 +01:00
Prevent unecessary channel change in controller
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user