under siege - dont repetitively ban the same person

pull/139/head
Aevann 2023-03-12 22:46:13 +02:00
parent cd18b75f7a
commit 510d962822
1 changed files with 2 additions and 0 deletions

View File

@ -433,6 +433,8 @@ def execute_antispam_comment_check(body:str, v:User):
def execute_under_siege(v:User, target:Optional[Union[Submission, Comment]], body, type:str) -> bool:
if not get_setting("under_siege"): return True
if v.post_count or v.comment_count: return True
if type in ('flag', 'message'):
threshold = 86400
else: