Refer to out["out"], not just out, to get the output from eval

This commit is contained in:
jesopo 2018-10-17 15:11:05 +01:00
parent 10d403d24a
commit 69f9aab4b9

View file

@ -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)