aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2010-12-17 17:28:05 +0100
committerKim Alvefur <zash@zash.se>2010-12-17 17:28:05 +0100
commitfdc0474f9b009dc8e4045e94db31a690e1ca805c (patch)
treed175ddd7ba52f530c525d7f036dddcc47724527b /util
parent8ee0fb71fcba10a54760d4a047a4a91e2ab97ad1 (diff)
downloadprosody-fdc0474f9b009dc8e4045e94db31a690e1ca805c.tar.gz
prosody-fdc0474f9b009dc8e4045e94db31a690e1ca805c.zip
util.stanza: Iterate on childtags instead of all childs.
Diffstat (limited to 'util')
-rw-r--r--util/stanza.lua2
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();