aboutsummaryrefslogtreecommitdiff
path: root/modules/ircv3_msgid.py
diff options
context:
space:
mode:
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