From 437418d0062cd014cb457e41c8370b5ca30c146a Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 27 Apr 2019 14:55:48 +0100 Subject: [PATCH] Use is-ignored export in title.py to ignore users for auto-title --- modules/title.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/title.py b/modules/title.py index f1ea2b30..034736ba 100644 --- a/modules/title.py +++ b/modules/title.py @@ -40,6 +40,11 @@ class Module(ModuleManager.BaseModule): def channel_message(self, event): match = re.search(utils.http.REGEX_URL, event["message"]) if match and event["channel"].get_setting("auto-title", False): + is_ignored_f = short_url = self.exports.get_one("is-ignored", + lambda _1, _2: False) + if is_ignored_f(event["user"], "title"): + return + url = match.group(0) title = self._get_title(match.group(0))