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)
|
||||
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]))
|
||||
|
|
Loading…
Reference in a new issue