projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fbf527
)
util.stanza: Use correct index when replacing the tag in .tags (thanks daurnimator)
author
Matthew Wild
<mwild1@gmail.com>
Fri, 5 Apr 2013 18:59:48 +0000
(19:59 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Fri, 5 Apr 2013 18:59:48 +0000
(19:59 +0100)
util/stanza.lua
patch
|
blob
|
history
diff --git
a/util/stanza.lua
b/util/stanza.lua
index 59c88c4ea0382acfbe3741f4a276e12157bd940a..7c21421083d57daafbcf2ad807c3d7b7166c36a5 100644
(file)
--- 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