From 7389c0e4ee338e03768aba640d0820cca5431a34 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 21 Aug 2012 15:33:07 +0200 Subject: util.stanza: Use ipairs instead of childtags (behavior changed in 92c86e11fd44) --- util/stanza.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/stanza.lua b/util/stanza.lua index 5c430f1d..a0ab2a5a 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -237,7 +237,7 @@ function stanza_mt.get_error(stanza) end type = error_tag.attr.type; - for child in error_tag:childtags() do + for _, child in ipairs(error_tag.tags) do if child.attr.xmlns == xmlns_stanzas then if not text and child.name == "text" then text = child:get_text(); -- cgit v1.2.3