aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_console.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-05-17 11:56:36 +0100
committerMatthew Wild <mwild1@gmail.com>2010-05-17 11:56:36 +0100
commit93fbb53acdb0e7ecd7d8745ca514417b3fde1e6f (patch)
tree49f2b6ce22e89b3107d09da8b238acebc9c11045 /plugins/mod_console.lua
parent4af6813db9ffa6dcacd2eb20417ca4667159f9af (diff)
parent95e01d796f994eb9ffcb902b38dd1c17ca7c4c57 (diff)
downloadprosody-93fbb53acdb0e7ecd7d8745ca514417b3fde1e6f.tar.gz
prosody-93fbb53acdb0e7ecd7d8745ca514417b3fde1e6f.zip
Merge with 0.6
Diffstat (limited to 'plugins/mod_console.lua')
-rw-r--r--plugins/mod_console.lua5
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+: ", "");