From e17fc1e7583d70545c067410cb7431afb8956af4 Mon Sep 17 00:00:00 2001 From: MarkKoz Date: Fri, 25 Oct 2019 15:48:25 -0700 Subject: Superstarify: fix incorrect infraction type check in _pardon_action --- bot/cogs/moderation/superstarify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/cogs/moderation/superstarify.py b/bot/cogs/moderation/superstarify.py index 803ecee1c..598b5a40e 100644 --- a/bot/cogs/moderation/superstarify.py +++ b/bot/cogs/moderation/superstarify.py @@ -192,7 +192,7 @@ class Superstarify(InfractionScheduler, Cog): user = guild.get_member(infraction["user"]) # Don't bother sending a notification if the user left the guild. - if infraction["type"] != "mute" or not user: + if infraction["type"] != "superstar" or not user: return {} # DM the user about the expiration. -- cgit v1.2.3