force utf8 encoding on eval_python.py

This commit is contained in:
jesopo 2019-12-18 19:51:35 +00:00
parent 1fedaf02bd
commit 0f1bf6ee22

View file

@ -21,6 +21,6 @@ class Module(ModuleManager.BaseModule):
if page and page.data: if page and page.data:
event["stdout"].write("%s: %s" % (event["user"].nickname, event["stdout"].write("%s: %s" % (event["user"].nickname,
page.decode().rstrip("\n"))) page.decode("utf8").rstrip("\n")))
else: else:
event["stderr"].write("%s: failed to eval" % event["user"].nickname) event["stderr"].write("%s: failed to eval" % event["user"].nickname)