Also pass method
to StdOut
/StdErr
Send()
when a send.stdout
or
`send.stderr` event is sent (commands.py)
This commit is contained in:
parent
64cb723901
commit
26603c23ac
1 changed files with 4 additions and 2 deletions
|
@ -364,7 +364,8 @@ class Module(ModuleManager.BaseModule):
|
||||||
if event.get("hide_prefix", False):
|
if event.get("hide_prefix", False):
|
||||||
stdout.hide_prefix()
|
stdout.hide_prefix()
|
||||||
|
|
||||||
stdout.write(event["message"]).send()
|
stdout.write(event["message"]).send(
|
||||||
|
self._command_method(event["target"], event["server"]))
|
||||||
if stdout.has_text():
|
if stdout.has_text():
|
||||||
event["target"].last_stdout = stdout
|
event["target"].last_stdout = stdout
|
||||||
@utils.hook("send.stderr")
|
@utils.hook("send.stderr")
|
||||||
|
@ -375,7 +376,8 @@ class Module(ModuleManager.BaseModule):
|
||||||
if event.get("hide_prefix", False):
|
if event.get("hide_prefix", False):
|
||||||
stderr.hide_prefix()
|
stderr.hide_prefix()
|
||||||
|
|
||||||
stderr.write(event["message"]).send()
|
stderr.write(event["message"]).send(
|
||||||
|
self._command_method(event["target"], event["server"]))
|
||||||
if stderr.has_text():
|
if stderr.has_text():
|
||||||
event["target"].last_stderr = stderr
|
event["target"].last_stderr = stderr
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue