# HG changeset patch # User Matthew Wild # Date 1257551770 0 # Node ID d59537f54c2426bf0502f5fb5a49e3cbe8658113 # Parent 25dc4b9d06b148b0709942e058f3051430eef333# Parent 72357b1c6d88285fd9030773eea7f61166a95638 Merge with trunk diff -r 72357b1c6d88 -r d59537f54c24 util/dataforms.lua --- a/util/dataforms.lua Mon Nov 02 01:57:33 2009 +0500 +++ b/util/dataforms.lua Fri Nov 06 23:56:10 2009 +0000 @@ -118,6 +118,17 @@ field_readers["jid-single"] = field_readers["text-single"]; +field_readers["jid-multi"] = + function (field_tag) + local result = {}; + for value_tag in field_tag:childtags() do + if value_tag.name == "value" then + result[#result+1] = value_tag[1]; + end + end + return result; + end + field_readers["text-multi"] = function (field_tag) local result = {};