Prefix !rust out/err with the requesting user's nickname

This commit is contained in:
jesopo 2018-10-08 12:55:10 +01:00
parent de2a390d92
commit 52405cbd9d

View file

@ -34,7 +34,6 @@ class Module(ModuleManager.BaseModule):
event["user"].nickname)
return
if page["success"]:
event["stdout"].write(page["stdout"])
else:
event["stderr"].write(page["stderr"])
err_or_out = "stdout" if page["success"] else "stderr"
event[err_or_out].write("%s: %s" % (event["user"].nickname,
page[err_or_out]))