From 1c082f17abd18a1bae147bd4283ed28f9b30e3e5 Mon Sep 17 00:00:00 2001 From: Nick80835 Date: Fri, 17 Apr 2020 16:54:42 -0400 Subject: [PATCH] add support for multiple, comma separated, owner IDs --- ubot/command_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubot/command_handler.py b/ubot/command_handler.py index a61dfbe..9cbb31e 100644 --- a/ubot/command_handler.py +++ b/ubot/command_handler.py @@ -23,7 +23,7 @@ class CommandHandler(): pattern_match = search(self.pattern_template.format("" if value["noprefix"] else prefix, key), event.text) if pattern_match: - if value["sudo"] and str(event.from_id) != self.settings.get_config("owner_id"): + if value["sudo"] and str(event.from_id) not in self.settings.get_config("owner_id").split(","): print(f"Attempted sudo command ({event.text}) from ID {event.from_id}") continue