aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/resume.py6
1 files changed, 6 insertions, 0 deletions
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"