forked from rDrama/rDrama
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: rDrama/rDrama#168 Co-authored-by: G-tix <g-tix@noreply.fsdfsd.net> Co-committed-by: G-tix <g-tix@noreply.fsdfsd.net>master
parent
70e1904f8c
commit
b658ce95d9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue