From 26603c23acccb3570d7b19ef07a59c74e4a20a48 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 23 Jan 2019 21:39:05 +0000 Subject: [PATCH] Also pass `method` to `StdOut`/`StdErr` `Send()` when a `send.stdout` or `send.stderr` event is sent (commands.py) --- modules/commands.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/commands.py b/modules/commands.py index 96a747ef..ce835ff0 100644 --- a/modules/commands.py +++ b/modules/commands.py @@ -364,7 +364,8 @@ class Module(ModuleManager.BaseModule): if event.get("hide_prefix", False): stdout.hide_prefix() - stdout.write(event["message"]).send() + stdout.write(event["message"]).send( + self._command_method(event["target"], event["server"])) if stdout.has_text(): event["target"].last_stdout = stdout @utils.hook("send.stderr") @@ -375,7 +376,8 @@ class Module(ModuleManager.BaseModule): if event.get("hide_prefix", False): stderr.hide_prefix() - stderr.write(event["message"]).send() + stderr.write(event["message"]).send( + self._command_method(event["target"], event["server"])) if stderr.has_text(): event["target"].last_stderr = stderr