Skip to content

Commit

Permalink
Merge pull request #42 from PantomInach/dynamic-voice-channel-bug-1
Browse files Browse the repository at this point in the history
Added check if voice states channel are not equal
  • Loading branch information
PantomInach authored Sep 2, 2021
2 parents 74f29cc + ad4442d commit e38c23f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ async def on_voice_state_update(member, before, after):
"""
User joins channel after.channel. If channel ends with a number, than a copy will be created with the lowest possible ending number.
"""
if after.channel and len(after.channel.members) <= 1:
if after.channel and before.channel != after.channel and len(after.channel.members) <= 1:
# Get channels to get lowest enumeration of channel
afterNumber = None
nameIndex = -1
Expand Down

0 comments on commit e38c23f

Please sign in to comment.