aboutsummaryrefslogtreecommitdiff
path: root/modules/ircv3_msgid.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-11-22 16:23:30 +0000
committerGravatar jesopo2019-11-22 16:23:30 +0000
commit5730d6fe591b63b8d50fbebf7c151504003921bd (patch)
treef6d170e30a8bd82513b52b98771c4f4c7a8fd778 /modules/ircv3_msgid.py
parentupdate CHANGELOG.md (diff)
signature
refactor commands (mostly stdout/stderr) and split typing/reply out
closes #208
Diffstat (limited to 'modules/ircv3_msgid.py')
-rw-r--r--modules/ircv3_msgid.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/ircv3_msgid.py b/modules/ircv3_msgid.py
index d5690286..cbb207dc 100644
--- a/modules/ircv3_msgid.py
+++ b/modules/ircv3_msgid.py
@@ -22,3 +22,10 @@ class Module(ModuleManager.BaseModule):
def ctcp(self, event):
if event["is_channel"]:
self._on_channel(event["target"], event["tags"])
+
+ @utils.hook("postprocess.command")
+ def postprocess_command(self, event):
+ msgid = TAG.get_value(event["line"].tags)
+ if msgid:
+ event["stdout"].tags["+draft/reply"] = msgid
+ event["stderr"].tags["+draft/reply"] = msgid