]> git.aero2k.de Git - urlbot-v3.git/commitdiff
fix nospoiler
authorThorsten <mail@aero2k.de>
Thu, 12 Mar 2020 15:26:18 +0000 (16:26 +0100)
committerThorsten <mail@aero2k.de>
Thu, 12 Mar 2020 15:26:18 +0000 (16:26 +0100)
distbot/plugins/url.py

index 3865ad2efdffb0a7e6db0a01a4ae769acc042303..6b41dc98a4a18d2379b0f9abef2402e1f3667284 100644 (file)
@@ -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()