From f82e3536f0aa8adc8ae5f8855de57697bdc8043f Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 26 Feb 2020 17:30:36 +0000 Subject: [PATCH] move bot_channel.py to core_modules, default to no bot channel --- {modules => src/core_modules}/bot_channel.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename {modules => src/core_modules}/bot_channel.py (69%) diff --git a/modules/bot_channel.py b/src/core_modules/bot_channel.py similarity index 69% rename from modules/bot_channel.py rename to src/core_modules/bot_channel.py index 32f3f1fc..60237792 100644 --- a/modules/bot_channel.py +++ b/src/core_modules/bot_channel.py @@ -8,5 +8,6 @@ class Module(ModuleManager.BaseModule): @utils.hook("received.001") def do_join(self, event): bot_channel = event["server"].get_setting("bot-channel", - self.bot.config.get("bot-channel", "#bitbot")) - event["server"].send_join(bot_channel) + self.bot.config.get("bot-channel", None)) + if not bot_channel == None: + event["server"].send_join(bot_channel)