util.stanza: Iterate on childtags instead of all childs.

Fri, 17 Dec 2010 17:28:05 +0100

author
Kim Alvefur <zash@zash.se>
date
Fri, 17 Dec 2010 17:28:05 +0100
changeset 3766
0d7137fee360
parent 3765
0731e5432baa
child 3767
3ba97d1d7a62

util.stanza: Iterate on childtags instead of all childs.

util/stanza.lua file | annotate | diff | comparison | revisions
--- a/util/stanza.lua	Fri Dec 17 13:50:33 2010 +0000
+++ 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();

mercurial