forked from MarseyWorld/MarseyWorld
propagate underage temp bans
parent
b32dfdde53
commit
60ce674b96
|
@ -127,6 +127,16 @@ def check_for_alts(current, include_current_session=False):
|
||||||
u.ban_reason = current.ban_reason
|
u.ban_reason = current.ban_reason
|
||||||
u.unban_utc = None
|
u.unban_utc = None
|
||||||
g.db.add(u)
|
g.db.add(u)
|
||||||
|
elif u.is_underage and not current.is_underage:
|
||||||
|
current.is_banned = u.is_banned
|
||||||
|
current.ban_reason = u.ban_reason
|
||||||
|
current.unban_utc = u.unban_utc
|
||||||
|
g.db.add(current)
|
||||||
|
elif current.is_underage and not u.is_underage:
|
||||||
|
u.is_banned = current.is_banned
|
||||||
|
u.ban_reason = current.ban_reason
|
||||||
|
u.unban_utc = current.unban_utc
|
||||||
|
g.db.add(u)
|
||||||
|
|
||||||
if u.is_muted and not current.is_muted:
|
if u.is_muted and not current.is_muted:
|
||||||
current.is_muted = u.is_muted
|
current.is_muted = u.is_muted
|
||||||
|
|
Loading…
Reference in New Issue