From b753a26a772d120e650feb0a12c3dd8917f9ab05 Mon Sep 17 00:00:00 2001 From: Twentysix Date: Sat, 20 Feb 2016 01:31:08 +0100 Subject: [PATCH] Switches to other channel if in different voice channel --- cogs/audio.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/audio.py b/cogs/audio.py index c12ce170e..9237bb243 100644 --- a/cogs/audio.py +++ b/cogs/audio.py @@ -513,8 +513,9 @@ class Audio: if author.voice_channel == v_channel: return True elif len(v_channel.voice_members) == 1: - if author.is_voice_connected(): + if author.voice_channel: if author.voice_channel.permissions_for(message.server.me).connect: + wait = await self.close_audio() await self.bot.join_voice_channel(author.voice_channel) return True else: