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'])