diff options
| -rw-r--r-- | src/core_modules/bot_channel.py (renamed from modules/bot_channel.py) | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/bot_channel.py b/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) |
