Extract channel join logic into seperate method

This commit is contained in:
HerHde
2020-03-22 02:57:12 +01:00
parent 22e705a469
commit d0d1f538a4
2 changed files with 9 additions and 7 deletions

View File

@ -611,8 +611,7 @@ def cmd_stop_and_getout(bot, user, text, command, parameter):
if var.playlist.mode == "one-shot":
var.playlist.clear()
if bot.channel:
bot.mumble.channels.find_by_name(bot.channel).move_in()
bot.join_channel()
def cmd_volume(bot, user, text, command, parameter):