diff options
| author | 2020-03-11 01:21:54 +0100 | |
|---|---|---|
| committer | 2020-03-11 01:21:54 +0100 | |
| commit | a24ffb3b53ca2043afe4d428e1456b6979c1f888 (patch) | |
| tree | 7f9481cb7c8ea4a5783e98a79166d3b23fc5ea61 | |
| parent | Remove channel mentions from output discord messages. (diff) | |
Move adding of channel to `muted_channels` up.
Before the channel was not added if `persistent` was `True`.
| -rw-r--r-- | bot/cogs/moderation/silence.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/bot/cogs/moderation/silence.py b/bot/cogs/moderation/silence.py index 68cad4062..4153b3439 100644 --- a/bot/cogs/moderation/silence.py +++ b/bot/cogs/moderation/silence.py @@ -127,12 +127,12 @@ class Silence(commands.Cog):              self._verified_role,              overwrite=PermissionOverwrite(**dict(current_overwrite, send_messages=False))          ) +        self.muted_channels.add(channel)          if persistent:              log.debug(f"Silenced #{channel} ({channel.id}) indefinitely.")              self.notifier.add_channel(channel)              return True -        self.muted_channels.add(channel)          log.debug(f"Silenced #{channel} ({channel.id}) for {duration} minute(s).")          return True | 
