Add the basics of usig BRB instead of QUIT for draft/resume-0.4
This commit is contained in:
parent
db33e12c8c
commit
281e14d1fb
1 changed files with 6 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue