From d469566ab443b76969a66cf3529579ea76cd112c Mon Sep 17 00:00:00 2001 From: Caleb Johnson Date: Sun, 3 Jun 2018 17:14:01 -0400 Subject: [PATCH] [mentiontracker] save settings when unregistering --- mentiontracker/mentiontracker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mentiontracker/mentiontracker.py b/mentiontracker/mentiontracker.py index d62eae9..0081ca0 100644 --- a/mentiontracker/mentiontracker.py +++ b/mentiontracker/mentiontracker.py @@ -62,6 +62,7 @@ async def _mention_unregister(self, ctx): s = ctx.message.server if user.id in self.mail: del self.mail[user.id] + fileIO("data/mentiontracker/mail.json", "save", self.mail) await self.bot.say("You will stop receiving mention mail.") else: await self.bot.say("You haven't registered yet, try {}.".format(