# HG changeset patch # User Kim Alvefur # Date 1292603285 -3600 # Node ID aa6ca3a7b9402a3c163fd620899512b81aeee2ee # Parent b623ff8b2202a2ea29a33a5dc0f823de6c85b624 util.stanza: Iterate on childtags instead of all childs. diff -r b623ff8b2202 -r aa6ca3a7b940 util/stanza.lua --- a/util/stanza.lua Tue Dec 14 18:54:55 2010 +0100 +++ b/util/stanza.lua Fri Dec 17 17:28:05 2010 +0100 @@ -242,7 +242,7 @@ 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();