From a7563c965321529b7adead08bfa86a10a13f7c9b Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 2 Oct 2018 14:22:42 +0100 Subject: [PATCH] Pass msgid in send_stdout/send_stdin in modules/commands.py --- modules/commands.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/commands.py b/modules/commands.py index 8a00b2a4..29e23e46 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -260,13 +260,15 @@ class Module(ModuleManager.BaseModule): @Utils.hook("send.stdout") def send_stdout(self, event): - stdout = StdOut(event["module_name"], event["target"]) + stdout = StdOut(event["module_name"], event["target"], + event.get("msgid", None)) stdout.write(event["message"]).send() if stdout.has_text(): event["target"].last_stdout = stdout @Utils.hook("send.stderr") def send_stderr(self, event): - stderr = StdErr(event["module_name"], event["target"]) + stderr = StdErr(event["module_name"], event["target"], + event.get("msgid", None)) stderr.write(event["message"]).send() if stderr.has_text(): event["target"].last_stderr = stderr