From b658ce95d923e9a1cd897baaf24e9ccc05bc200b Mon Sep 17 00:00:00 2001 From: G-tix Date: Sun, 9 Jul 2023 22:17:35 +0000 Subject: [PATCH] Prevent dylan autojanny overwrite (#168) Autojanny overwrites the 'Dylan' shadowban with an 'Under Siege' shadowban. Rechecking "if v.shadowbanned: return" will prevent this, I guess. As usual, please quadruple check my code. Reviewed-on: https://fsdfsd.net/rDrama/rDrama/pulls/168 Co-authored-by: G-tix Co-committed-by: G-tix --- files/helpers/actions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/helpers/actions.py b/files/helpers/actions.py index 0f6399162e..ffe5ea46f5 100644 --- a/files/helpers/actions.py +++ b/files/helpers/actions.py @@ -482,6 +482,7 @@ def execute_under_siege(v:User, target:Optional[Union[Post, Comment]], body, kin if SITE == 'watchpeopledie.tv' or True: execute_dylan(v) + if v.shadowbanned: return if not get_setting("under_siege"): return if v.admin_level >= PERMS['SITE_BYPASS_UNDER_SIEGE_MODE']: return