diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-06-28 22:29:17 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-06-28 22:29:17 +0500 |
commit | 7422c11cfa3619fe768daf8e8e076ec6ef35823f (patch) | |
tree | 5c6eb860d4f2611af2f90e5f3b3c48e6561274a1 /util | |
parent | 2249117f21b5a34cd8aaab0c55939fa0224e53a1 (diff) | |
download | prosody-7422c11cfa3619fe768daf8e8e076ec6ef35823f.tar.gz prosody-7422c11cfa3619fe768daf8e8e076ec6ef35823f.zip |
util.pluginloader: Append "@" to chunk names (fixes weird formatting in plugin tracebacks)
Diffstat (limited to 'util')
-rw-r--r-- | util/pluginloader.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/pluginloader.lua b/util/pluginloader.lua index 86075c90..861fe6a9 100644 --- a/util/pluginloader.lua +++ b/util/pluginloader.lua @@ -27,7 +27,7 @@ end function load_code(plugin, resource) local content, err = load_resource(plugin, resource); if not content then return content, err; end - return loadstring(content, err); + return loadstring(content, "@"..err); end return _M; |