forked from MarseyWorld/MarseyWorld
minor fix to namelock
parent
01bb4da930
commit
6e67f4c295
|
@ -406,7 +406,7 @@ def award_thing(v, thing_type, id):
|
|||
badge_grant(user=author, badge_id=96)
|
||||
elif kind == "namelock":
|
||||
new_name = note.strip().lstrip('@')
|
||||
if not new_name and author.namechanged:
|
||||
if (not new_name or new_name == author.username) and author.namechanged:
|
||||
author.namechanged += 86400
|
||||
else:
|
||||
if not valid_username_regex.fullmatch(new_name):
|
||||
|
|
Loading…
Reference in New Issue