Comparison

util/stanza.lua @ 3726:fa516dc2c2de

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
parent 3638:6f58a3063c14
child 3766:0d7137fee360
comparison
equal deleted inserted replaced
3725:926ece7d0e67 3726:fa516dc2c2de
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