propagate underage temp bans

master
Aevann 2024-11-14 22:39:37 +02:00
parent b32dfdde53
commit 60ce674b96
1 changed files with 10 additions and 0 deletions

View File

@ -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