diff options
Diffstat (limited to 'plugins/mod_console.lua')
-rw-r--r-- | plugins/mod_console.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/mod_console.lua b/plugins/mod_console.lua index 4457a2f3..a28ae4b2 100644 --- a/plugins/mod_console.lua +++ b/plugins/mod_console.lua @@ -84,9 +84,10 @@ function console_listener.onincoming(conn, data) session.env._ = data; - local chunk, err = loadstring("return "..data); + local chunkname = "=console"; + local chunk, err = loadstring("return "..data, chunkname); if not chunk then - chunk, err = loadstring(data); + chunk, err = loadstring(data, chunkname); if not chunk then err = err:gsub("^%[string .-%]:%d+: ", ""); err = err:gsub("^:%d+: ", ""); |