Skip to content

Commit

Permalink
This should not have changed
Browse files Browse the repository at this point in the history
  • Loading branch information
TrustyJAID committed Jun 3, 2023
1 parent b27c8b7 commit baa74d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redbot/cogs/mutes/mutes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1732,11 +1732,11 @@ async def channel_mute_user(

# Determine if this is voice mute -> channel mute upgrade
is_mute_upgrade = (
current_mute != {} and not voice_mute and current_mute.get("voice_mute", False)
current_mute is not None and not voice_mute and current_mute.get("voice_mute", False)
)
# We want to continue if this is a new mute or a mute upgrade,
# otherwise we should return with failure.
if current_mute != {} and not is_mute_upgrade:
if current_mute is not None and not is_mute_upgrade:
ret.reason = _(MUTE_UNMUTE_ISSUES["already_muted"])
return ret
new_overs: Dict[str, Optional[bool]] = {"speak": False}
Expand Down

0 comments on commit baa74d6

Please sign in to comment.