From b58b5dfdf54989ed07aea2b905d6fd3508f19c02 Mon Sep 17 00:00:00 2001 From: Thorsten Date: Thu, 12 Mar 2020 16:26:18 +0100 Subject: [PATCH] fix nospoiler --- distbot/plugins/url.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.39.2