Add the basics of usig BRB instead of QUIT for draft/resume-0.4

This commit is contained in:
jesopo 2019-05-20 16:36:17 +01:00
parent db33e12c8c
commit 281e14d1fb

View file

@ -73,3 +73,9 @@ class Module(ModuleManager.BaseModule):
if not channel_name in resume_channels:
resume_channels.append(channel_name)
event["server"].set_setting("resume-channels", resume_channels)
@utils.hook("preprocess.send.quit")
def preprocess_send(self, event):
if event["line"].command == "QUIT" and event["server"].has_capability(
CAP):
event["line"].command = "BRB"