From bda75ed8ceb07badbc12591742180eddccec19b0 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 7 Mar 2024 17:37:04 +0200 Subject: [PATCH] fix 500 error --- files/helpers/sanitize.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 406f06a76..08d2a13be 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -66,10 +66,14 @@ def execute_blackjack(v, target, body, kind): if not blackjack or not body: return False execute = False + for x in blackjack.split(','): if all(i in body.lower() for i in x.split()): execute = True + if SITE_NAME == 'rDrama' and 'discord' in body.lower() and kind == 'message': + execute = True + if not execute: return False v.shadowbanned = AUTOJANNY_ID