240 if not error_tag then |
240 if not error_tag then |
241 return nil, nil, nil; |
241 return nil, nil, nil; |
242 end |
242 end |
243 type = error_tag.attr.type; |
243 type = error_tag.attr.type; |
244 |
244 |
245 for child in error_tag:children() do |
245 for child in error_tag:childtags() do |
246 if child.attr.xmlns == xmlns_stanzas then |
246 if child.attr.xmlns == xmlns_stanzas then |
247 if not text and child.name == "text" then |
247 if not text and child.name == "text" then |
248 text = child:get_text(); |
248 text = child:get_text(); |
249 elseif not condition then |
249 elseif not condition then |
250 condition = child.name; |
250 condition = child.name; |