mirror of
https://gitea.your-land.de/whosit/cmd_eval.git
synced 2025-06-19 08:08:06 +02:00
prefix each output line with a pipe symbol - easier to see things
This commit is contained in:
parent
e42862a9b0
commit
af2f0939da
1
init.lua
1
init.lua
@ -173,6 +173,7 @@ core.register_chatcommand("eval",
|
|||||||
-- Creating a coroutine here, instead of using xpcall,
|
-- Creating a coroutine here, instead of using xpcall,
|
||||||
-- allows us to get a clean stack trace up to this call.
|
-- allows us to get a clean stack trace up to this call.
|
||||||
local res = helper(coroutine.resume(coro))
|
local res = helper(coroutine.resume(coro))
|
||||||
|
res = string.gsub(res, "([^\n]+)", "| %1")
|
||||||
return ok, res
|
return ok, res
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user