always shadow

master
Aevann 2023-05-03 18:38:45 +03:00
parent f5a97ae709
commit fbd155e3c1
1 changed files with 10 additions and 14 deletions

View File

@ -194,11 +194,9 @@ def execute_blackjack(v, target, body, type):
for x in blackjack.split(','):
if all(i in body.lower() for i in x.split()):
execute = True
shadowban = v.truescore < 100 or not target
if not execute: return False
if shadowban:
v.shadowbanned = AUTOJANNY_ID
ma = ModAction(
@ -211,8 +209,6 @@ def execute_blackjack(v, target, body, type):
v.ban_reason = "Blackjack"
g.db.add(v)
elif target and type in {'submission', 'comment', 'message'}:
target.is_banned = True
notified_ids = [x[0] for x in g.db.query(User.id).filter(User.admin_level >= PERMS['BLACKJACK_NOTIFICATIONS'])]
extra_info = type