aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-01-23 21:39:05 +0000
committerGravatar jesopo2019-01-23 21:39:05 +0000
commit26603c23acccb3570d7b19ef07a59c74e4a20a48 (patch)
treec08d903c280a99424d7ad9244e42e21ecd20d647 /modules
parentMove logic to get `command-method` out of `Out` object (commands.py) (diff)
signature
Also pass `method` to `StdOut`/`StdErr` `Send()` when a `send.stdout` or
`send.stderr` event is sent (commands.py)
Diffstat (limited to 'modules')
-rw-r--r--modules/commands.py6
1 files 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