parent
ee264631b9
commit
68673292c1
|
@ -379,7 +379,7 @@ def execute_blackjack(v, target, body, type):
|
|||
elif hasattr(target, 'is_banned'):
|
||||
target.is_banned = True
|
||||
|
||||
if CARP_ID and AEVANN_ID and IDIO_ID:
|
||||
if CARP_ID and AEVANN_ID:
|
||||
extra_info = "unknown entity"
|
||||
|
||||
if type == 'submission':
|
||||
|
@ -391,14 +391,14 @@ def execute_blackjack(v, target, body, type):
|
|||
elif type == 'modmail':
|
||||
extra_info = "modmail"
|
||||
elif type in {'comment', 'message'}:
|
||||
for id in (CARP_ID, AEVANN_ID, IDIO_ID):
|
||||
for id in (CARP_ID, AEVANN_ID):
|
||||
n = Notification(comment_id=target.id, user_id=id)
|
||||
g.db.add(n)
|
||||
g.db.flush()
|
||||
extra_info = None
|
||||
|
||||
if extra_info:
|
||||
for id in (CARP_ID, AEVANN_ID, IDIO_ID):
|
||||
for id in (CARP_ID, AEVANN_ID):
|
||||
send_repeatable_notification(id, f"Blackjack for @{v.username}: {extra_info}")
|
||||
return False
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue