strip @ from new username

master
Aevann 2023-05-17 21:14:45 +03:00
parent 2b116dbebf
commit 428ec6b86a
1 changed files with 1 additions and 1 deletions

View File

@ -349,7 +349,7 @@ def award_thing(v, thing_type, id):
author.flairchanged = int(time.time()) + 86400
badge_grant(user=author, badge_id=96)
elif kind == "namelock":
new_name = note.strip()
new_name = note.strip().lstrip('@')
if not new_name and author.namechanged:
author.namechanged += 86400
else: