make 3-letter usernames sticky as well

master
Aevann 2024-11-10 20:32:21 +02:00
parent 46374ff81d
commit 942ce76f50
1 changed files with 1 additions and 1 deletions

View File

@ -869,7 +869,7 @@ def settings_name_change(v):
if existing and existing.id != v.id: if existing and existing.id != v.id:
stop(400, f"Username `{new_name}` is already in use.") stop(400, f"Username `{new_name}` is already in use.")
if v.patron >= 4 and v.username != v.original_username and not (v.extra_username and len(v.extra_username) < 3): if v.patron >= 4 and v.username != v.original_username and not (v.extra_username and len(v.extra_username) <= 3):
v.extra_username = v.username v.extra_username = v.username
v.username = new_name v.username = new_name