always override alt ban_reason if its "Under Siege" (mello moment)

pull/215/head
Aevann 2023-10-08 23:00:09 +03:00
parent deb9fdc315
commit c54336bc97
1 changed files with 5 additions and 0 deletions

View File

@ -115,6 +115,11 @@ def check_for_alts(current, include_current_session=False):
u.unban_utc = 0
g.db.add(u)
if current.ban_reason == "Under Siege" and u.ban_reason and u.ban_reason != "Under Siege":
current.ban_reason = u.ban_reason
elif u.ban_reason == "Under Siege" and current.ban_reason and current.ban_reason != "Under Siege":
u.ban_reason = current.ban_reason
if u.is_muted and not current.is_muted:
current.is_muted = u.is_muted
g.db.add(current)