From c54336bc971f687393af6979594ae95c7b973a9f Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 8 Oct 2023 23:00:09 +0300 Subject: [PATCH] always override alt ban_reason if its "Under Siege" (mello moment) --- files/routes/routehelpers.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/routes/routehelpers.py b/files/routes/routehelpers.py index d41b91557..7235afe1a 100644 --- a/files/routes/routehelpers.py +++ b/files/routes/routehelpers.py @@ -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)