aboutsummaryrefslogtreecommitdiffstats
path: root/util/stanza.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-12-11 22:34:29 +0000
committerMatthew Wild <mwild1@gmail.com>2010-12-11 22:34:29 +0000
commit4776abee1d5e0367840e4bd7ef2d8fbde86cdd01 (patch)
treefd8155966dd6941975f69bbbf091c60f3a3f4590 /util/stanza.lua
parentfb37ed2b0405460245369f1353408c5102fec69f (diff)
downloadprosody-4776abee1d5e0367840e4bd7ef2d8fbde86cdd01.tar.gz
prosody-4776abee1d5e0367840e4bd7ef2d8fbde86cdd01.zip
util.stanza: Change get_error() to return nil rather than '' for no text
Diffstat (limited to 'util/stanza.lua')
-rw-r--r--util/stanza.lua2
1 files changed, 1 insertions, 1 deletions
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)