diff --git a/files/helpers/wrappers.py b/files/helpers/wrappers.py index f9980a28c..38c9b3e76 100644 --- a/files/helpers/wrappers.py +++ b/files/helpers/wrappers.py @@ -39,8 +39,7 @@ def get_logged_in_user(): def check_ban_evade(v): if v and not v.patron and v.admin_level < 2 and v.ban_evade and not v.unban_utc: - if randint(0,30) < v.ban_evade: v.shadowbanned = "AutoJanny" - else: v.ban_evade +=1 + v.shadowbanned = "AutoJanny" g.db.add(v) g.db.commit() diff --git a/files/routes/admin.py b/files/routes/admin.py index b3a4589aa..c37cb03a5 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -991,10 +991,12 @@ def shadowban(user_id, v): if user.admin_level != 0: abort(403) user.shadowbanned = v.username g.db.add(user) + for alt in user.alts: if alt.admin_level: break alt.shadowbanned = v.username g.db.add(alt) + ma = ModAction( kind="shadowban", user_id=v.id,