From 48ec456aca823761616ecd81da6dda1c50273c0f Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 9 May 2019 13:37:13 -0400 Subject: [PATCH] Update channels logic --- sopel_modules/SpiceBot_Channels/Channels.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sopel_modules/SpiceBot_Channels/Channels.py b/sopel_modules/SpiceBot_Channels/Channels.py index 482d5b8..1aec6aa 100644 --- a/sopel_modules/SpiceBot_Channels/Channels.py +++ b/sopel_modules/SpiceBot_Channels/Channels.py @@ -120,6 +120,8 @@ def bot_part_empty(bot): for channel in bot.channels.keys(): if len(bot.channels[channel].privileges.keys()) == 1 and channel not in ignorepartlist: bot.part(channel, "Leaving Empty Channel") + if channel.lower() in bot.memory['SpiceBot_Channels']['channels']: + del bot.memory['SpiceBot_Channels']['channels'][channel.lower()] @sopel.module.event('2001')