allow full path

changes for #106
This commit is contained in:
Azlux
2020-03-21 14:55:48 +01:00
parent a097102b17
commit 22e705a469
2 changed files with 5 additions and 2 deletions

View File

@ -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