change arg order for StdOut(/StdErr( in send.stdout/send.stderr events
This commit is contained in:
parent
d003b8eb57
commit
fe67edecac
1 changed files with 2 additions and 2 deletions
|
@ -462,7 +462,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
@utils.hook("send.stdout")
|
@utils.hook("send.stdout")
|
||||||
def send_stdout(self, event):
|
def send_stdout(self, event):
|
||||||
stdout = outs.StdOut(event["server"], event["module_name"],
|
stdout = outs.StdOut(event["server"], event["module_name"],
|
||||||
event["target"], {}, event.get("target_str", ""))
|
event["target"], event.get("target_str", ""), {})
|
||||||
|
|
||||||
if event.get("hide_prefix", False):
|
if event.get("hide_prefix", False):
|
||||||
stdout.hide_prefix()
|
stdout.hide_prefix()
|
||||||
|
@ -474,7 +474,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
@utils.hook("send.stderr")
|
@utils.hook("send.stderr")
|
||||||
def send_stderr(self, event):
|
def send_stderr(self, event):
|
||||||
stderr = outs.StdErr(event["server"], event["module_name"],
|
stderr = outs.StdErr(event["server"], event["module_name"],
|
||||||
event["target"], {}, event.get("target_str", ""))
|
event["target"], event.get("target_str", ""), {})
|
||||||
|
|
||||||
if event.get("hide_prefix", False):
|
if event.get("hide_prefix", False):
|
||||||
stderr.hide_prefix()
|
stderr.hide_prefix()
|
||||||
|
|
Loading…
Reference in a new issue