From 644b8615f37782ae0ed7cdc07cc430f8995309a2 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 17 May 2012 21:25:41 +0200 Subject: util.dataforms: Don't return invalid JIDs in jid-single. --- util/dataforms.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/dataforms.lua b/util/dataforms.lua index 1e01f6e8..8cb39144 100644 --- a/util/dataforms.lua +++ b/util/dataforms.lua @@ -156,7 +156,7 @@ field_readers["jid-single"] = if data and #data > 0 then return data elseif raw_data then - return raw_data, "Invalid JID"; + return nil, "Invalid JID: " .. raw_data; elseif required then return nil, "Required value missing"; end -- cgit v1.2.3