aboutsummaryrefslogtreecommitdiffstats
path: root/util/stanza.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-04-05 19:59:48 +0100
committerMatthew Wild <mwild1@gmail.com>2013-04-05 19:59:48 +0100
commit616a9c6aba991468dcf917d19d92e40bfb4f3d3d (patch)
treec6629a1eaa148ef5158ca0f894ada69b6c0121d1 /util/stanza.lua
parent83221358fac655171bd91a2c8bd144e60767225d (diff)
downloadprosody-616a9c6aba991468dcf917d19d92e40bfb4f3d3d.tar.gz
prosody-616a9c6aba991468dcf917d19d92e40bfb4f3d3d.zip
util.stanza: Use correct index when replacing the tag in .tags (thanks daurnimator)
Diffstat (limited to 'util/stanza.lua')
-rw-r--r--util/stanza.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/stanza.lua b/util/stanza.lua
index 59c88c4e..7c214210 100644
--- a/util/stanza.lua
+++ b/util/stanza.lua
@@ -166,7 +166,7 @@ function stanza_mt:maptags(callback)
curr_tag = curr_tag - 1;
else
self[i] = ret;
- tags[i] = ret;
+ tags[curr_tag] = ret;
end
curr_tag = curr_tag + 1;
end