Update channels logic

This commit is contained in:
deathbybandaid 2019-05-09 13:37:13 -04:00
parent b3857cd96e
commit 48ec456aca

View File

@ -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')