diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-05-07 16:17:48 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-05-07 16:17:48 +0500 |
commit | cfb093a9f4e464fba1e56c2e3e340ece4219a411 (patch) | |
tree | 356e76e982f915b8a9887af0b7cdadc7cecaa4e2 /plugins/mod_console.lua | |
parent | 5459f25151b4de3d3d51120dbf2a6ee8ebabb088 (diff) | |
parent | c43b31011fc3d488b33945f64c0362666ca96913 (diff) | |
download | prosody-cfb093a9f4e464fba1e56c2e3e340ece4219a411.tar.gz prosody-cfb093a9f4e464fba1e56c2e3e340ece4219a411.zip |
Merge 0.6->0.7
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 4180e2b6..e87ef536 100644 --- a/plugins/mod_console.lua +++ b/plugins/mod_console.lua @@ -85,9 +85,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+: ", ""); |