change arg order for StdOut(/StdErr( in send.stdout/send.stderr events

This commit is contained in:
jesopo 2019-05-21 23:16:54 +01:00
parent d003b8eb57
commit fe67edecac

View file

@ -462,7 +462,7 @@ class Module(ModuleManager.BaseModule):
@utils.hook("send.stdout")
def send_stdout(self, event):
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):
stdout.hide_prefix()
@ -474,7 +474,7 @@ class Module(ModuleManager.BaseModule):
@utils.hook("send.stderr")
def send_stderr(self, event):
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):
stderr.hide_prefix()