[3.4] Fix unintended moving *between* VCs when channel muting (#5854) (#6037)

Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
Red-GitHubBot
2023-04-19 22:47:59 +02:00
committed by GitHub
parent fd30c9739a
commit 08e9a5a587

View File

@@ -1665,7 +1665,7 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
move_channel = False
new_overs.update(send_messages=False, add_reactions=False, speak=False)
send_reason = None
if user.voice and user.voice.channel:
if user.voice and user.voice.channel == channel:
if channel.permissions_for(guild.me).move_members:
move_channel = True
else:
@@ -1767,7 +1767,7 @@ class Mutes(VoiceMutes, commands.Cog, metaclass=CompositeMetaClass):
else:
old_values = {"send_messages": None, "add_reactions": None, "speak": None}
if user.voice and user.voice.channel:
if user.voice and user.voice.channel == channel:
if channel.permissions_for(guild.me).move_members:
move_channel = True