Only .strip '\n' from output in modules/eval_lua.py
This commit is contained in:
parent
bcd123fc4f
commit
11d1e5c0e0
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class Module(ModuleManager.BaseModule):
|
||||||
if page:
|
if page:
|
||||||
textareas = page.find_all("textarea")
|
textareas = page.find_all("textarea")
|
||||||
if len(textareas) > 1:
|
if len(textareas) > 1:
|
||||||
out = textareas[1].text.strip()
|
out = textareas[1].text.strip("\n")
|
||||||
event["stdout"].write("%s: %s" % (event["user"].nickname, out))
|
event["stdout"].write("%s: %s" % (event["user"].nickname, out))
|
||||||
else:
|
else:
|
||||||
event["stderr"].write("%s: failed to eval" % event["user"].nickname)
|
event["stderr"].write("%s: failed to eval" % event["user"].nickname)
|
||||||
|
|
Loading…
Reference in a new issue