util.stanza: Change get_error() to return nil rather than '' for no text

Sat, 11 Dec 2010 22:34:29 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 11 Dec 2010 22:34:29 +0000
changeset 3848
3933e007f829
parent 3847
9ffcf7df0c62
child 3849
34981acbd5d5

util.stanza: Change get_error() to return nil rather than '' for no text

util/stanza.lua file | annotate | diff | comparison | revisions
--- 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)

mercurial