diff --git a/modules/resume.py b/modules/resume.py index a2b6bf27..b1984d0f 100644 --- a/modules/resume.py +++ b/modules/resume.py @@ -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"