1
0
Fork 0
mirror of synced 2024-06-23 08:40:41 +12:00

corrected error where the wrong class was being checked for duration

This commit is contained in:
Phxntxm 2016-08-06 09:43:09 -05:00
parent e64ce2b06c
commit d6fd844f92

View file

@ -231,14 +231,14 @@ class Music:
await self.bot.say("Nothing currently in the queue")
return
count = state.current.duration
count = state.current.player.duration
found = False
for song in state.songs._queue:
if song.requester == author:
found = True
break
count += song.player.duration
if count == state.current.duration:
if count == state.current.player.duration:
await self.bot.say("You are next in the queue!")
return
if not found: