query ban (and maybe quiet) list on join

This commit is contained in:
jesopo 2020-01-22 12:05:19 +00:00
parent 74d7e5231d
commit 0b87a4e5c9

View file

@ -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))