Prefix !rust out/err with the requesting user's nickname
This commit is contained in:
parent
de2a390d92
commit
52405cbd9d
1 changed files with 3 additions and 4 deletions
|
@ -34,7 +34,6 @@ class Module(ModuleManager.BaseModule):
|
||||||
event["user"].nickname)
|
event["user"].nickname)
|
||||||
return
|
return
|
||||||
|
|
||||||
if page["success"]:
|
err_or_out = "stdout" if page["success"] else "stderr"
|
||||||
event["stdout"].write(page["stdout"])
|
event[err_or_out].write("%s: %s" % (event["user"].nickname,
|
||||||
else:
|
page[err_or_out]))
|
||||||
event["stderr"].write(page["stderr"])
|
|
||||||
|
|
Loading…
Reference in a new issue