From: Thorsten Date: Thu, 12 Mar 2020 15:26:18 +0000 (+0100) Subject: fix nospoiler X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=b58b5dfdf54989ed07aea2b905d6fd3508f19c02;p=urlbot-v3.git fix nospoiler --- diff --git a/distbot/plugins/url.py b/distbot/plugins/url.py index 3865ad2..6b41dc9 100644 --- a/distbot/plugins/url.py +++ b/distbot/plugins/url.py @@ -82,7 +82,7 @@ class URLResolver(Worker): return result = re.findall(r'(https?://[^\s>]+)', msg["body"]) - if not result: + if not result or "(nospoiler)" in msg["body"]: return url_blacklist = conf_get('plugins.urlresolve.blacklist').values()