diff options
author | Kim Alvefur <zash@zash.se> | 2010-12-17 17:28:05 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2010-12-17 17:28:05 +0100 |
commit | fdc0474f9b009dc8e4045e94db31a690e1ca805c (patch) | |
tree | d175ddd7ba52f530c525d7f036dddcc47724527b | |
parent | 8ee0fb71fcba10a54760d4a047a4a91e2ab97ad1 (diff) | |
download | prosody-fdc0474f9b009dc8e4045e94db31a690e1ca805c.tar.gz prosody-fdc0474f9b009dc8e4045e94db31a690e1ca805c.zip |
util.stanza: Iterate on childtags instead of all childs.
-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 16d558af..afaf9ce9 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -242,7 +242,7 @@ function stanza_mt.get_error(stanza) end type = error_tag.attr.type; - for child in error_tag:children() do + for child in error_tag:childtags() do if child.attr.xmlns == xmlns_stanzas then if not text and child.name == "text" then text = child:get_text(); |