aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorFlorian Zeitz <florob@babelmonkeys.de>2013-02-11 23:46:45 +0100
committerFlorian Zeitz <florob@babelmonkeys.de>2013-02-11 23:46:45 +0100
commit2344ef54376bd25ed6ef7f35470135ff73b56d87 (patch)
treefa0414cbefa192f9413df6d188663fff06699d85 /util
parent62d876cf007b26c6167c3b9693f247e62a5dabf3 (diff)
downloadprosody-2344ef54376bd25ed6ef7f35470135ff73b56d87.tar.gz
prosody-2344ef54376bd25ed6ef7f35470135ff73b56d87.zip
util.dataforms: Add support for generating type='fixed' fields
Diffstat (limited to 'util')
-rw-r--r--util/dataforms.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/dataforms.lua b/util/dataforms.lua
index 55bad998..8634e337 100644
--- a/util/dataforms.lua
+++ b/util/dataforms.lua
@@ -53,7 +53,7 @@ function form_t.form(layout, data, formtype)
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();