aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-10-25 00:00:10 -0700
committerGravatar MarkKoz <[email protected]>2019-10-25 15:32:21 -0700
commita8e85349f22435c5bdb12287f6f632f95ee9389b (patch)
treef657d6a788e5d9c3dec40a374d0f09d2c910f985
parentInfractionScheduler: prevent duplicate rescheduling of infractions (diff)
Superstarify: ignore member update event when applying
-rw-r--r--bot/cogs/moderation/superstarify.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/cogs/moderation/superstarify.py b/bot/cogs/moderation/superstarify.py
index a534ec762..06a68d89e 100644
--- a/bot/cogs/moderation/superstarify.py
+++ b/bot/cogs/moderation/superstarify.py
@@ -135,6 +135,7 @@ class Superstarify(InfractionScheduler, Cog):
expiry_str = format_infraction(infraction["expires_at"])
# Apply the infraction and schedule the expiration task.
+ self.mod_log.ignore(constants.Event.member_update, member.id)
await member.edit(nick=forced_nick, reason=reason)
self.schedule_task(ctx.bot.loop, infraction["id"], infraction)