diff options
author | Kim Alvefur <zash@zash.se> | 2012-08-21 15:33:07 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-08-21 15:33:07 +0200 |
commit | 7389c0e4ee338e03768aba640d0820cca5431a34 (patch) | |
tree | edd506d812c8ab0456a68c38bff17355420d6512 /util | |
parent | b93ae92930131a853434cf622113714ad33bec26 (diff) | |
download | prosody-7389c0e4ee338e03768aba640d0820cca5431a34.tar.gz prosody-7389c0e4ee338e03768aba640d0820cca5431a34.zip |
util.stanza: Use ipairs instead of childtags (behavior changed in 92c86e11fd44)
Diffstat (limited to 'util')
-rw-r--r-- | util/stanza.lua | 2 |
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(); |