Merge pull request #37 from deathbybandaid/development

Update channels logic
This commit is contained in:
Deathbybandaid 2019-05-09 13:39:13 -04:00 committed by GitHub
commit a5feee6cdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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