From d79b292b1fb83007bca0ffe8ebb709bd71493199 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Tue, 21 May 2019 12:09:35 -0400 Subject: [PATCH] Adjust to self --- sopel_modules/SpiceBot/Channels.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sopel_modules/SpiceBot/Channels.py b/sopel_modules/SpiceBot/Channels.py index c8f8d72..d936a10 100644 --- a/sopel_modules/SpiceBot/Channels.py +++ b/sopel_modules/SpiceBot/Channels.py @@ -50,17 +50,17 @@ class BotChannels(): for channel in bot.channels.keys(): if len(bot.channels[channel].privileges.keys()) == 1 and channel not in ignorepartlist and channel.startswith("#"): bot.part(channel, "Leaving Empty Channel") - if channel.lower() in botchannels.SpiceBot_Channels['list']: - del botchannels.SpiceBot_Channels['list'][channel.lower()] + if channel.lower() in self.SpiceBot_Channels['list']: + del self.SpiceBot_Channels['list'][channel.lower()] def join_all_channels(self, bot): if bot.config.SpiceBot_Channels.joinall: - for channel in botchannels.SpiceBot_Channels['list'].keys(): + for channel in self.SpiceBot_Channels['list'].keys(): if channel.startswith("#"): if channel not in bot.channels.keys() and channel not in bot.config.SpiceBot_Channels.chanignore: - bot.write(('JOIN', bot.nick, botchannels.SpiceBot_Channels['list'][channel]['name'])) + bot.write(('JOIN', bot.nick, self.SpiceBot_Channels['list'][channel]['name'])) if channel not in bot.channels.keys() and bot.config.SpiceBot_Channels.operadmin: - bot.write(('SAJOIN', bot.nick, botchannels.SpiceBot_Channels['list'][channel]['name'])) + bot.write(('SAJOIN', bot.nick, self.SpiceBot_Channels['list'][channel]['name'])) def chanadmin_all_channels(self, bot): # Chan ADMIN +a