comparison util/stanza.lua @ 3848:3933e007f829

util.stanza: Change get_error() to return nil rather than '' for no text
author Matthew Wild <mwild1@gmail.com>
date Sat, 11 Dec 2010 22:34:29 +0000
parents 6f58a3063c14
children 0d7137fee360
comparison
equal deleted inserted replaced
3847:9ffcf7df0c62 3848:3933e007f829
252 if condition and text then 252 if condition and text then
253 break; 253 break;
254 end 254 end
255 end 255 end
256 end 256 end
257 return type, condition or "undefined-condition", text or ""; 257 return type, condition or "undefined-condition", text;
258 end 258 end
259 259
260 function stanza_mt.__add(s1, s2) 260 function stanza_mt.__add(s1, s2)
261 return s1:add_direct_child(s2); 261 return s1:add_direct_child(s2);
262 end 262 end