forked from MarseyWorld/MarseyWorld
make all temp bans propagate to future alts on WPD
parent
5577311a27
commit
0a26fde839
|
@ -127,16 +127,17 @@ 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:
|
elif SITE_NAME == 'WPD':
|
||||||
current.is_banned = u.is_banned
|
if u.is_suspended and not current.is_suspended:
|
||||||
current.ban_reason = u.ban_reason
|
current.is_banned = u.is_banned
|
||||||
current.unban_utc = u.unban_utc
|
current.ban_reason = u.ban_reason
|
||||||
g.db.add(current)
|
current.unban_utc = u.unban_utc
|
||||||
elif current.is_underage and not u.is_underage:
|
g.db.add(current)
|
||||||
u.is_banned = current.is_banned
|
elif current.is_suspended and not u.is_suspended:
|
||||||
u.ban_reason = current.ban_reason
|
u.is_banned = current.is_banned
|
||||||
u.unban_utc = current.unban_utc
|
u.ban_reason = current.ban_reason
|
||||||
g.db.add(u)
|
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