mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-02-06 06:55:00 +00:00
Update fediverse.py
This commit is contained in:
parent
3de3620b1f
commit
447b152f85
|
@ -75,7 +75,7 @@ class Fediverse(Extension):
|
|||
return False
|
||||
|
||||
# check if the text contains any of the bad domains
|
||||
if bool(re.search(r"https://(" + "|".join(re.escape(domain) for domain in bad_domains) + ")", text)):
|
||||
if len(bad_domains) > 0 and bool(re.search(r"https://(" + "|".join(re.escape(domain) for domain in bad_domains) + ")", text)):
|
||||
logger.warning("[*] Found a bad reputation domain.")
|
||||
logger.warning("[*] BLOCKED MESSAGE: %s" % (text))
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue
Block a user