disallow 10489 from changing his name

master
Aevann 2023-07-24 17:41:22 +03:00
parent 40259b7f93
commit 9a7b08ebac
1 changed files with 3 additions and 0 deletions

View File

@ -737,6 +737,9 @@ def settings_advanced_get(v:User):
@limiter.limit(DEFAULT_RATELIMIT, deduct_when=lambda response: response.status_code < 400, key_func=get_ID)
@is_not_permabanned
def settings_name_change(v):
if SITE == 'rdrama.net' and v.id == 10489:
abort(403)
if v.namechanged: abort(403)
if v.shadowbanned: abort(500)