query ban (and maybe quiet) list on join
This commit is contained in:
parent
74d7e5231d
commit
0b87a4e5c9
1 changed files with 10 additions and 0 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue