Software /
code /
prosody
Diff
util/dataforms.lua @ 5551:e1e06f1465be
util.dataforms: Add support for generating type='fixed' fields
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Mon, 11 Feb 2013 23:46:45 +0100 |
parent | 4928:5211c11dd865 |
child | 5693:ef490e9276df |
line wrap: on
line diff
--- a/util/dataforms.lua Thu Feb 07 22:11:35 2013 +0100 +++ b/util/dataforms.lua Mon Feb 11 23:46:45 2013 +0100 @@ -53,7 +53,7 @@ elseif field_type == "boolean" then form:tag("value"):text((value and "1") or "0"):up(); elseif field_type == "fixed" then - + form:tag("value"):text(value):up(); elseif field_type == "jid-multi" then for _, jid in ipairs(value) do form:tag("value"):text(jid):up();