mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 06:29:54 -05:00
Merge pull request #37 from deathbybandaid/development
Update channels logic
This commit is contained in:
commit
a5feee6cdb
@ -120,6 +120,8 @@ def bot_part_empty(bot):
|
|||||||
for channel in bot.channels.keys():
|
for channel in bot.channels.keys():
|
||||||
if len(bot.channels[channel].privileges.keys()) == 1 and channel not in ignorepartlist:
|
if len(bot.channels[channel].privileges.keys()) == 1 and channel not in ignorepartlist:
|
||||||
bot.part(channel, "Leaving Empty Channel")
|
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')
|
@sopel.module.event('2001')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user