diff options
| author | 2020-01-22 12:05:19 +0000 | |
|---|---|---|
| committer | 2020-01-22 12:05:19 +0000 | |
| commit | 0b87a4e5c940b6a18ab54c4f302b1285b65d3564 (patch) | |
| tree | ea314efac736a7bcb73a89dd052128544ddff1b9 | |
| parent | 'mute_method' -> 'quiet_method' (diff) | |
| signature | ||
query ban (and maybe quiet) list on join
| -rw-r--r-- | modules/channel_op.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/channel_op.py b/modules/channel_op.py index 8b5779e6..d8fd6851 100644 --- a/modules/channel_op.py +++ b/modules/channel_op.py @@ -395,3 +395,13 @@ class Module(ModuleManager.BaseModule): def _cunmute(self, channel): channel.send_mode("-m") + + @utils.hook("self.join") + def self_join(self, event): + list_modes = ["b"] + + quiet = self._quiet_method(event["server"]) + if quiet and not quiet[0] == "b": + list_modes.append(quiet[0]) + + event["channel"].send_mode("+%s" % "".join(list_modes)) |
