From 302a852de3a37b97267eabc86a0e1e86391c4e6e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 21 Sep 2022 22:38:59 +0200 Subject: [PATCH] make carp immune to awards --- files/routes/awards.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/files/routes/awards.py b/files/routes/awards.py index 17676ab469..348b599315 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -166,7 +166,7 @@ def award_thing(v, thing_type, id): author = thing.author - if author.id in (PIZZASHILL_ID, DAD_ID) and v.id not in (PIZZASHILL_ID, DAD_ID): + if author.id in (PIZZASHILL_ID, DAD_ID, CARP_ID) and v.id not in (PIZZASHILL_ID, DAD_ID, CARP_ID): return {"error": "This user is immune to awards."}, 403 if kind == "benefactor" and author.id == v.id: @@ -406,8 +406,6 @@ def award_thing(v, thing_type, id): else: author.rainbow = int(time.time()) + 86400 badge_grant(user=author, badge_id=171) elif kind == "spider": - if author.id == CARP_ID: - return {"error": "Carp is immune to the spider award!"}, 403 if author.spider: author.spider += 86400 else: author.spider = int(time.time()) + 86400 badge_grant(user=author, badge_id=179, notify=False)