aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2020-02-26 17:30:36 +0000
committerGravatar jesopo2020-02-26 17:30:36 +0000
commitf82e3536f0aa8adc8ae5f8855de57697bdc8043f (patch)
tree9e58cc1b350431ccd61d8a67dda303d23c037d98
parentcommands module no longer relies on pemissions module (diff)
signature
move bot_channel.py to core_modules, default to no bot channel
-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)