From 76e52c1ae5325b4742711adf1c48ddc6c1d47a49 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Sat, 18 May 2019 18:18:12 -0400 Subject: [PATCH] test --- sopel_modules/SpiceBot_Channels/Channels.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sopel_modules/SpiceBot_Channels/Channels.py b/sopel_modules/SpiceBot_Channels/Channels.py index 487b30d..4f89785 100644 --- a/sopel_modules/SpiceBot_Channels/Channels.py +++ b/sopel_modules/SpiceBot_Channels/Channels.py @@ -47,15 +47,11 @@ def shutdown(bot): @sopel.module.event(botevents.BOT_CONNECTED) @sopel.module.rule('.*') -def unkickable_bot(bot, trigger): +def trigger_channel_list_initial(bot, trigger): + if bot.config.SpiceBot_Channels.operadmin: bot.write(('SAMODE', bot.nick, '+q')) - -@sopel.module.event(botevents.BOT_CONNECTED) -@sopel.module.rule('.*') -def trigger_channel_list_initial(bot, trigger): - bot_part_empty(bot) bot.write(['LIST'])