forked from MarseyWorld/MarseyWorld
fsdsfd
parent
d89e7d7b69
commit
f9b4bdeeca
|
@ -29,7 +29,7 @@ def get_logged_in_user():
|
|||
return v
|
||||
|
||||
def check_ban_evade(v):
|
||||
if not v.patron and v and v.ban_evade and v.admin_level == 0 and not v.is_suspended:
|
||||
if v and not v.patron and v.ban_evade and v.admin_level == 0 and not v.is_suspended:
|
||||
if random.randint(0,30) < v.ban_evade: v.shadowbanned = "AutoJanny"
|
||||
else: v.ban_evade +=1
|
||||
g.db.add(v)
|
||||
|
|
Loading…
Reference in New Issue