From 9bdd28ce603e5d50c6dea63e4e73d348bb2c06c0 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 9 May 2019 13:43:52 +0100 Subject: [PATCH] Ignore users ignored from !youtube for auto-youtube --- modules/youtube.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/youtube.py b/modules/youtube.py index 81afabb0..f29250db 100644 --- a/modules/youtube.py +++ b/modules/youtube.py @@ -130,6 +130,11 @@ class Module(ModuleManager.BaseModule): def channel_message(self, event): match = re.search(REGEX_YOUTUBE, event["message"]) if match and event["channel"].get_setting("auto-youtube", False): + is_ignored_f = short_url = self.exports.get_one("is-ignored", + lambda _1, _2: False) + if is_ignored_f(event["server"], event["user"], "youtube"): + return + youtube_id = match.group(1) video_details = self.video_details(youtube_id) if video_details: