automatically PART blacklisted channels if we join them (SAJOIN e.g.)

This commit is contained in:
jesopo 2019-09-05 15:16:18 +01:00
parent d4bfde1a71
commit 905abf46f0

View file

@ -33,3 +33,8 @@ class Module(ModuleManager.BaseModule):
keys = [c[1] for c in channels_out if c[1]]
event["line"].args[0] = ",".join(channels)
event["line"].args[1:] = keys
@utils.hook("received.join")
def on_join(self, event):
if event["channel"].get_setting("blacklist", False):
event["channel"].send_part()