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 | 8f9442b31c9699ac02c67d2769c7df17fd659be2 (patch) | |
tree | 2f63174c8acd4eea8805947aa4a8959d53f7c172 | |
parent | 8f4671cca2312164afb0f7b123fbf21d881426fc (diff) | |
download | prosody-8f9442b31c9699ac02c67d2769c7df17fd659be2.tar.gz prosody-8f9442b31c9699ac02c67d2769c7df17fd659be2.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(); |