From d6fd844f92eb24cd6f9cf52785a47f4056f89372 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sat, 6 Aug 2016 09:43:09 -0500 Subject: [PATCH] corrected error where the wrong class was being checked for duration --- cogs/playlist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/playlist.py b/cogs/playlist.py index 40b4639..af41790 100644 --- a/cogs/playlist.py +++ b/cogs/playlist.py @@ -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: