From 8e4866e43d1130d01406cc30e817e60779887719 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 6 Sep 2022 06:51:53 +0200 Subject: [PATCH] forgot to add rainbow expiry code --- files/helpers/awards.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/helpers/awards.py b/files/helpers/awards.py index 20007df9b..01917fc25 100644 --- a/files/helpers/awards.py +++ b/files/helpers/awards.py @@ -73,6 +73,10 @@ def award_timers(v, bot=False): v.deflector = None notify_if_not_bot("Your deflector has expired!") dirty = True + if v.rainbow and v.rainbow < now: + v.rainbow = None + notify_if_not_bot("Your rainbow has expired!") + dirty = True if v.bite and v.bite < now: v.bite = None notify_if_not_bot("Your vampire status has ended!")