diff options
| author | 2019-04-27 14:55:48 +0100 | |
|---|---|---|
| committer | 2019-04-27 14:55:48 +0100 | |
| commit | 437418d0062cd014cb457e41c8370b5ca30c146a (patch) | |
| tree | 9a24869fa80bc7760ede76e03b13375e3af627d9 /modules | |
| parent | Use is-ignored export in karma to allow ignoring users for karma (diff) | |
| signature | ||
Use is-ignored export in title.py to ignore users for auto-title
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/title.py | 5 |
1 files changed, 5 insertions, 0 deletions
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)) |
