From 58d9fd8cfe4bb0d2fd6210cf1f9ecdbcaeab47fe Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sun, 5 May 2019 11:50:00 -0400 Subject: [PATCH] Logs Patch --- sopel_modules/SpiceBot_Logs/Logs.py | 3 +++ sopel_modules/SpiceBot_SBTools/__init__.py | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sopel_modules/SpiceBot_Logs/Logs.py b/sopel_modules/SpiceBot_Logs/Logs.py index ebbb12c..c046605 100644 --- a/sopel_modules/SpiceBot_Logs/Logs.py +++ b/sopel_modules/SpiceBot_Logs/Logs.py @@ -47,6 +47,9 @@ def join_log_channel(bot, trigger): if channel not in bot.channels.keys() and bot.config.SpiceBot_Channels.operadmin: bot.write(('SAJOIN', bot.nick, channel)) + if 'SpiceBot_Logs_queue' not in bot.memory: + bot.memory['SpiceBot_Logs_queue'] = [] + while True: if len(bot.memory['SpiceBot_Logs_queue']): bot.say(str(bot.memory['SpiceBot_Logs_queue'][0]), channel) diff --git a/sopel_modules/SpiceBot_SBTools/__init__.py b/sopel_modules/SpiceBot_SBTools/__init__.py index 2e3003a..9bbaa95 100644 --- a/sopel_modules/SpiceBot_SBTools/__init__.py +++ b/sopel_modules/SpiceBot_SBTools/__init__.py @@ -253,8 +253,6 @@ def channel_list_current(bot): def spicebot_reload(bot, log_from='service_manip', quitmessage='Recieved QUIT'): # service_manip(bot, bot.nick, 'restart', log_from) - # bot.reload_plugins() - # bot.write(('NOTICE', bot.nick), '001 Foo :Hello') bot.restart(quitmessage)