aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-10-25 15:48:25 -0700
committerGravatar MarkKoz <[email protected]>2019-10-25 17:11:45 -0700
commite17fc1e7583d70545c067410cb7431afb8956af4 (patch)
tree0c2c263b929dcaf060030aae55ff770d7fea5ebe
parentInfractionScheduler: remove redundant logging (diff)
Superstarify: fix incorrect infraction type check in _pardon_action
-rw-r--r--bot/cogs/moderation/superstarify.py2
1 files changed, 1 insertions, 1 deletions
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.