From 22e705a469c1f54bf34cd4ddf0da6a15aa68838b Mon Sep 17 00:00:00 2001 From: Azlux Date: Sat, 21 Mar 2020 14:55:48 +0100 Subject: [PATCH] allow full path changes for #106 --- mumbleBot.py | 5 ++++- pymumble | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mumbleBot.py b/mumbleBot.py index ce510da..72771c9 100644 --- a/mumbleBot.py +++ b/mumbleBot.py @@ -132,7 +132,10 @@ class MumbleBot: self.set_comment() self.mumble.users.myself.unmute() # by sure the user is not muted if self.channel: - self.mumble.channels.find_by_name(self.channel).move_in() + if '/' in self.channel: + self.mumble.channels.find_by_tree(channel.split('/')).move_in() + else: + self.mumble.channels.find_by_name(self.channel).move_in() self.mumble.set_bandwidth(200000) self.is_ducking = False diff --git a/pymumble b/pymumble index 1dd6d6d..9b30cf2 160000 --- a/pymumble +++ b/pymumble @@ -1 +1 @@ -Subproject commit 1dd6d6d4df2fdef33202f17e2acf3ba9678a5737 +Subproject commit 9b30cf2dea037b728a3dd38e3364b92415eb79b3