aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-04-27 14:55:48 +0100
committerGravatar jesopo2019-04-27 14:55:48 +0100
commit437418d0062cd014cb457e41c8370b5ca30c146a (patch)
tree9a24869fa80bc7760ede76e03b13375e3af627d9
parentUse 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
-rw-r--r--modules/title.py5
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))