Diff

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
line wrap: on
line diff
--- a/util/stanza.lua	Sat Dec 11 00:19:15 2010 +0000
+++ b/util/stanza.lua	Sat Dec 11 22:34:29 2010 +0000
@@ -254,7 +254,7 @@
 			end
 		end
 	end
-	return type, condition or "undefined-condition", text or "";
+	return type, condition or "undefined-condition", text;
 end
 
 function stanza_mt.__add(s1, s2)