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