From 5614879f4e7db697947234ee3e6c639aeaf63f72 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 8 Jun 2023 06:47:41 +0300 Subject: [PATCH] make chud and owoify exclusive to fix this https://rdrama.net/post/18459/martycapywalking-megathread-for-bugs-and-suggestions/4242306#context --- files/routes/awards.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/files/routes/awards.py b/files/routes/awards.py index fc005116c5..02fe975f34 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -322,6 +322,9 @@ def award_thing(v, thing_type, id): if author.marsify: abort(409, f"{safe_username} is under the effect of a conflicting award: Marsify award!") + if author.owoify: + abort(409, f"{safe_username} is under the effect of a conflicting award: OwOify award!") + if author.agendaposter == 1: abort(409, f"{safe_username} is already chudded permanently!") @@ -457,6 +460,9 @@ def award_thing(v, thing_type, id): else: author.earlylife = int(time.time()) + 86400 badge_grant(user=author, badge_id=169) elif ("Furry" in kind and kind == v.house) or kind == 'owoify': + if author.agendaposter: + abort(409, f"{safe_username} is under the effect of a conflicting award: Chud award!") + if author.owoify: author.owoify += 21600 else: author.owoify = int(time.time()) + 21600 badge_grant(user=author, badge_id=167)