Refer to out["out"]
, not just out
, to get the output from eval
This commit is contained in:
parent
10d403d24a
commit
69f9aab4b9
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ class Module(ModuleManager.BaseModule):
|
|||
out = json.loads(out)
|
||||
|
||||
event["stdout" if out["success"] else "stderr"].write(
|
||||
"%s: %s" % (event["user"].nickname, out))
|
||||
"%s: %s" % (event["user"].nickname, out["out"]))
|
||||
else:
|
||||
event["stderr"].write("%s: failed to eval" % event["user"].nickname)
|
||||
|
||||
|
|
Loading…
Reference in a new issue