From a45cb2425106ad691e7e887629861f3b67050d62 Mon Sep 17 00:00:00 2001 From: azlux Date: Wed, 3 Oct 2018 22:46:34 +0200 Subject: [PATCH] Update allowed for admin I'm a rock --- mumbleBot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mumbleBot.py b/mumbleBot.py index 11de8e0..827ab58 100644 --- a/mumbleBot.py +++ b/mumbleBot.py @@ -199,7 +199,7 @@ class MumbleBot: self.mumble.users[text.actor].send_message(var.config.get('strings', 'not_admin')) elif command == var.config.get('command', 'update'): - if not self.is_admin(user): + if self.is_admin(user): self.mumble.users[text.actor].send_message("Starting the update") tp = sp.check_output([var.config.get('bot', 'pip3_path'), 'install', '--upgrade', 'youtube-dl']).decode() msg = ""