Changeset

5090:61c7c53c06d5

util.stanza: Use ipairs instead of childtags (behavior changed in 92c86e11fd44)
author Kim Alvefur <zash@zash.se>
date Tue, 21 Aug 2012 15:33:07 +0200
parents 5088:d5bb9cd2e6df
children 5091:dbc483d06a07
files util/stanza.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/stanza.lua	Fri Aug 10 16:32:40 2012 +0100
+++ b/util/stanza.lua	Tue Aug 21 15:33:07 2012 +0200
@@ -237,7 +237,7 @@
 	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();