aboutsummaryrefslogtreecommitdiffstats
path: root/util/stanza.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-08-21 15:33:07 +0200
committerKim Alvefur <zash@zash.se>2012-08-21 15:33:07 +0200
commit0f7cedcc1af4c1f7174d4af9d0f2f2faf12f8d79 (patch)
treeedd506d812c8ab0456a68c38bff17355420d6512 /util/stanza.lua
parentd0e22fc610946bac43ecd3789f814b22851ac9c7 (diff)
downloadprosody-0f7cedcc1af4c1f7174d4af9d0f2f2faf12f8d79.tar.gz
prosody-0f7cedcc1af4c1f7174d4af9d0f2f2faf12f8d79.zip
util.stanza: Use ipairs instead of childtags (behavior changed in 92c86e11fd44)
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 5c430f1d..a0ab2a5a 100644
--- a/util/stanza.lua
+++ b/util/stanza.lua
@@ -237,7 +237,7 @@ function stanza_mt.get_error(stanza)
end
type = error_tag.attr.type;
- for child in error_tag:childtags() do
+ for _, child in ipairs(error_tag.tags) do
if child.attr.xmlns == xmlns_stanzas then
if not text and child.name == "text" then
text = child:get_text();