From 4776abee1d5e0367840e4bd7ef2d8fbde86cdd01 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 11 Dec 2010 22:34:29 +0000 Subject: util.stanza: Change get_error() to return nil rather than '' for no text --- util/stanza.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/stanza.lua b/util/stanza.lua index 307a858a..16d558af 100644 --- a/util/stanza.lua +++ b/util/stanza.lua @@ -254,7 +254,7 @@ function stanza_mt.get_error(stanza) 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) -- cgit v1.2.3