diff options
| author | 2019-05-20 16:36:17 +0100 | |
|---|---|---|
| committer | 2019-05-20 16:36:17 +0100 | |
| commit | 281e14d1fbfeb48871adb3d33c943e69bb170cb8 (patch) | |
| tree | 8ba5db89a76bba6ef2e22d88d986227f2c924c3d /modules/resume.py | |
| parent | Remove Capability.enabled() - it's unused (diff) | |
| signature | ||
Add the basics of usig BRB instead of QUIT for draft/resume-0.4
Diffstat (limited to 'modules/resume.py')
| -rw-r--r-- | modules/resume.py | 6 |
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" |
