util/stanza.lua

changeset 3766
0d7137fee360
parent 3726
fa516dc2c2de
child 3999
257d13734d32
equal deleted inserted replaced
3765:0731e5432baa 3766:0d7137fee360
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;

mercurial