same as last commit

pull/92/head
Aevann 2023-01-23 10:06:59 +02:00
parent 11aef2ae3d
commit e18b5fd29d
1 changed files with 2 additions and 2 deletions

View File

@ -96,10 +96,10 @@ def check_for_alts(current:User, include_current_session=True):
u.ban_reason = current.ban_reason
g.db.add(u)
if u.is_muted:
if u.is_muted and not current.is_muted:
current.is_muted = u.is_muted
g.db.add(current)
elif current.is_muted:
elif current.is_muted and not u.is_muted:
u.is_muted = current.is_muted
g.db.add(u)