diff options
author | Matthew Wild <mwild1@gmail.com> | 2022-02-03 12:53:19 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2022-02-03 12:53:19 +0000 |
commit | e88413e22b6387e081358741ffffe639368bcd30 (patch) | |
tree | a3cb6f5cce5b809fd99807af1cdc761b4198349e /util/debug.lua | |
parent | f1b61294fccf013d6ee8d4df45a86f5bcd09fa9d (diff) | |
download | prosody-e88413e22b6387e081358741ffffe639368bcd30.tar.gz prosody-e88413e22b6387e081358741ffffe639368bcd30.zip |
util.pluginloader: Support for multiple pluginloader instances, and options
Diffstat (limited to 'util/debug.lua')
-rw-r--r-- | util/debug.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/debug.lua b/util/debug.lua index 4c924d40..20d49720 100644 --- a/util/debug.lua +++ b/util/debug.lua @@ -31,7 +31,7 @@ local function get_locals_table(thread, level) for local_num = 1, math.huge do local name, value; if thread then - name, value = debug.getlocal(thread, level, local_num); + name, value = debug.getlocal(thread, level-1, local_num); else name, value = debug.getlocal(level+1, local_num); end |