send notif to carp
This commit is contained in:
parent
eaab62697a
commit
412e0dc35c
11 changed files with 54 additions and 54 deletions
|
@ -41,7 +41,7 @@ def check_ban_evade(v):
|
|||
|
||||
if random.randint(0,30) < v.ban_evade:
|
||||
v.ban(reason="permaban evasion")
|
||||
send_notification(NOTIFICATIONS_ACCOUNT, v, "Your account has been permanently suspended for the following reason:\n\n> permaban evasion")
|
||||
send_notification(v.id, "Your account has been permanently suspended for the following reason:\n\n> permaban evasion")
|
||||
|
||||
for post in g.db.query(Submission).options(lazyload('*')).filter_by(author_id=v.id).all():
|
||||
if post.is_banned:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue