aboutsummaryrefslogtreecommitdiff
path: root/modules/commands.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-02 14:22:42 +0100
committerGravatar jesopo2018-10-02 14:22:42 +0100
commita7563c965321529b7adead08bfa86a10a13f7c9b (patch)
tree782fd2f3dd9cee1863c54aaa92148cb2cda4e17b /modules/commands.py
parentIt's 'draft/msgid' not just 'msgid', also actually store 'msgid' in self._msgid (diff)
signature
Pass msgid in send_stdout/send_stdin in modules/commands.py
Diffstat (limited to 'modules/commands.py')
-rw-r--r--modules/commands.py6
1 files 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