util/stanza.lua
changeset 5090 61c7c53c06d5
parent 4936 92c86e11fd44
child 5414 efec29eb4cdd
equal deleted inserted replaced
5088:d5bb9cd2e6df 5090:61c7c53c06d5
   235 	if not error_tag then
   235 	if not error_tag then
   236 		return nil, nil, nil;
   236 		return nil, nil, nil;
   237 	end
   237 	end
   238 	type = error_tag.attr.type;
   238 	type = error_tag.attr.type;
   239 	
   239 	
   240 	for child in error_tag:childtags() do
   240 	for _, child in ipairs(error_tag.tags) do
   241 		if child.attr.xmlns == xmlns_stanzas then
   241 		if child.attr.xmlns == xmlns_stanzas then
   242 			if not text and child.name == "text" then
   242 			if not text and child.name == "text" then
   243 				text = child:get_text();
   243 				text = child:get_text();
   244 			elseif not condition then
   244 			elseif not condition then
   245 				condition = child.name;
   245 				condition = child.name;