From 8f9442b31c9699ac02c67d2769c7df17fd659be2 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 17 Dec 2010 17:28:05 +0100 Subject: util.stanza: Iterate on childtags instead of all childs. --- util/stanza.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') 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(); -- cgit v1.2.3