From 403227b6dff470d6e184d23d1dc0e3e98cb5d0b0 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 13 Oct 2018 22:21:51 +0100 Subject: [PATCH] Check automode when BitBot joins a channel --- modules/auto_mode.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/auto_mode.py b/modules/auto_mode.py index dc8cff38..71ff1158 100644 --- a/modules/auto_mode.py +++ b/modules/auto_mode.py @@ -49,11 +49,16 @@ class Module(ModuleManager.BaseModule): :require_mode: o """ self._check_channel(event["target"]) + @utils.hook("set.channelset.automode") def on_automode_set(self, event): if event["value"]: self._check_channel(event["target"]) + @utils.hook("self.join") + def self_join(self, event): + self._check_channel(event["channel"]) + def _add_mode(self, event, mode, mode_name): target_user = event["server"].get_user(event["args_split"][0]) automodes = event["target"].get_user_setting(target_user.get_id(),