diff --git a/files/routes/admin.py b/files/routes/admin.py index 273bf203d..d10bcbe63 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -1075,6 +1075,8 @@ def unshadowban(user_id, v): @limiter.limit("1/second;30/minute;200/hour;1000/day") @admin_level_required(2) def admin_title_change(user_id, v): + if CARP_ID > 0 and user_id == CARP_ID: + abort(403) user = g.db.query(User).filter_by(id=user_id).one_or_none() diff --git a/files/routes/awards.py b/files/routes/awards.py index bd04392e0..cfb015260 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -240,7 +240,9 @@ def award_thing(v, thing_type, id): send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n![]({badge.path})\n\n{badge.name}") elif kind == "flairlock": new_name = note[:100].replace("𒐪","") - if not new_name and author.flairchanged: + if CARP_ID > 0 and author.id == CARP_ID: + send_repeatable_notification(v.id, "Carp's title is sacred and inviolable. You just wasted a flairlock!") + elif not new_name and author.flairchanged: author.flairchanged += 86400 else: author.customtitleplain = new_name