mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 06:29:54 -05:00
Update channels logic
This commit is contained in:
parent
b3857cd96e
commit
48ec456aca
@ -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')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user