comparison util/dataforms.lua @ 14186:d975d280baec

Merge 13.0->trunk
author Matthew Wild <mwild1@gmail.com>
date Mon, 25 May 2026 19:01:23 +0100
parents 44e5c73e6fa3
children
comparison
equal deleted inserted replaced
14168:4f4c346e4f39 14186:d975d280baec
250 result[#result+1] = value; 250 result[#result+1] = value;
251 if raw_value and not value then 251 if raw_value and not value then
252 err[#err+1] = ("Invalid JID: " .. raw_value); 252 err[#err+1] = ("Invalid JID: " .. raw_value);
253 end 253 end
254 end 254 end
255 if #result > 0 then 255 if #result > 0 or #err > 0 then
256 return result, (#err > 0 and t_concat(err, "\n") or nil); 256 return result, (#err > 0 and t_concat(err, "\n") or nil);
257 elseif required then 257 elseif required then
258 return nil, "Required value missing"; 258 return nil, "Required value missing";
259 end 259 end
260 end 260 end