Only .strip '\n' from output in modules/eval_lua.py

This commit is contained in:
jesopo 2018-10-10 12:03:09 +01:00
parent bcd123fc4f
commit 11d1e5c0e0

View file

@ -20,7 +20,7 @@ class Module(ModuleManager.BaseModule):
if page:
textareas = page.find_all("textarea")
if len(textareas) > 1:
out = textareas[1].text.strip()
out = textareas[1].text.strip("\n")
event["stdout"].write("%s: %s" % (event["user"].nickname, out))
else:
event["stderr"].write("%s: failed to eval" % event["user"].nickname)