aboutsummaryrefslogtreecommitdiff
path: root/modules/channel_op.py
diff options
context:
space:
mode:
authorGravatar jesopo2020-01-22 12:05:19 +0000
committerGravatar jesopo2020-01-22 12:05:19 +0000
commit0b87a4e5c940b6a18ab54c4f302b1285b65d3564 (patch)
treeea314efac736a7bcb73a89dd052128544ddff1b9 /modules/channel_op.py
parent'mute_method' -> 'quiet_method' (diff)
signature
query ban (and maybe quiet) list on join
Diffstat (limited to 'modules/channel_op.py')
-rw-r--r--modules/channel_op.py10
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))