From 428ec6b86a983faab86ab211987f1b6573c12a2e Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 17 May 2023 21:14:45 +0300 Subject: [PATCH] strip @ from new username --- files/routes/awards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index 4a0371b5e..d48acb800 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -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: