Token with !joinme

#37
This commit is contained in:
Azlux 2019-02-15 18:09:45 +01:00
parent ddb246381b
commit c83704ecc6

View File

@ -140,7 +140,7 @@ class MumbleBot:
logging.info(command + ' - ' + parameter + ' by ' + user)
if command == var.config.get('command', 'joinme'):
self.mumble.users.myself.move_in(self.mumble.users[text.actor]['channel_id'])
self.mumble.users.myself.move_in(self.mumble.users[text.actor]['channel_id'], token=parameter)
return
if not self.is_admin(user) and not var.config.getboolean('bot', 'allow_other_channel_message') and self.mumble.users[text.actor]['channel_id'] != self.mumble.users.myself['channel_id']: