forked from rDrama/rDrama
always shadow
parent
f5a97ae709
commit
fbd155e3c1
|
@ -194,11 +194,9 @@ def execute_blackjack(v, target, body, type):
|
||||||
for x in blackjack.split(','):
|
for x in blackjack.split(','):
|
||||||
if all(i in body.lower() for i in x.split()):
|
if all(i in body.lower() for i in x.split()):
|
||||||
execute = True
|
execute = True
|
||||||
shadowban = v.truescore < 100 or not target
|
|
||||||
|
|
||||||
if not execute: return False
|
if not execute: return False
|
||||||
|
|
||||||
if shadowban:
|
|
||||||
v.shadowbanned = AUTOJANNY_ID
|
v.shadowbanned = AUTOJANNY_ID
|
||||||
|
|
||||||
ma = ModAction(
|
ma = ModAction(
|
||||||
|
@ -211,8 +209,6 @@ def execute_blackjack(v, target, body, type):
|
||||||
|
|
||||||
v.ban_reason = "Blackjack"
|
v.ban_reason = "Blackjack"
|
||||||
g.db.add(v)
|
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'])]
|
notified_ids = [x[0] for x in g.db.query(User.id).filter(User.admin_level >= PERMS['BLACKJACK_NOTIFICATIONS'])]
|
||||||
extra_info = type
|
extra_info = type
|
||||||
|
|
Loading…
Reference in New Issue