From 421431d01dd871fa341927223e0b7248c2b249ff Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Mon, 3 Jul 2017 13:18:13 +0200 Subject: [PATCH] pausing disabled again due to issues --- src/NadekoBot/Modules/Music/Music.cs | 30 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/NadekoBot/Modules/Music/Music.cs b/src/NadekoBot/Modules/Music/Music.cs index 51713c80..6cb3ebe8 100644 --- a/src/NadekoBot/Modules/Music/Music.cs +++ b/src/NadekoBot/Modules/Music/Music.cs @@ -63,27 +63,27 @@ namespace NadekoBot.Modules.Music if ((player.VoiceChannel == oldState.VoiceChannel) && usr.Id == _client.CurrentUser.Id) { - if (player.Paused && newState.VoiceChannel.Users.Count > 1) //unpause if there are people in the new channel - player.TogglePause(); - else if (!player.Paused && newState.VoiceChannel.Users.Count <= 1) // pause if there are no users in the new channel - player.TogglePause(); + //if (player.Paused && newState.VoiceChannel.Users.Count > 1) //unpause if there are people in the new channel + // player.TogglePause(); + //else if (!player.Paused && newState.VoiceChannel.Users.Count <= 1) // pause if there are no users in the new channel + // player.TogglePause(); player.SetVoiceChannel(newState.VoiceChannel); return; } - //if some other user moved - if ((player.VoiceChannel == newState.VoiceChannel && //if joined first, and player paused, unpause - player.Paused && - newState.VoiceChannel.Users.Count >= 2) || // keep in mind bot is in the channel (+1) - (player.VoiceChannel == oldState.VoiceChannel && // if left last, and player unpaused, pause - !player.Paused && - oldState.VoiceChannel.Users.Count == 1)) - { - player.TogglePause(); - return; - } + ////if some other user moved + //if ((player.VoiceChannel == newState.VoiceChannel && //if joined first, and player paused, unpause + // player.Paused && + // newState.VoiceChannel.Users.Count >= 2) || // keep in mind bot is in the channel (+1) + // (player.VoiceChannel == oldState.VoiceChannel && // if left last, and player unpaused, pause + // !player.Paused && + // oldState.VoiceChannel.Users.Count == 1)) + //{ + // player.TogglePause(); + // return; + //} } catch {