aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-04-05 19:41:24 +0100
committerMatthew Wild <mwild1@gmail.com>2009-04-05 19:41:24 +0100
commit017c2522ed87e82cfa6185163210da5afbd8fd10 (patch)
treef5c1290b279ae29f468b3e0bb5265d4478028aed /util
parentd9f66a567a831ce4ad655b6af1797ef4b166ba51 (diff)
downloadprosody-017c2522ed87e82cfa6185163210da5afbd8fd10.tar.gz
prosody-017c2522ed87e82cfa6185163210da5afbd8fd10.zip
util.dataforms: Set form type when generating a form
Diffstat (limited to 'util')
-rw-r--r--util/dataforms.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/util/dataforms.lua b/util/dataforms.lua
index a57e183b..58b45fd3 100644
--- a/util/dataforms.lua
+++ b/util/dataforms.lua
@@ -16,10 +16,8 @@ function new(layout)
return setmetatable(layout, form_mt);
end
-local form_x_attr = { xmlns = xmlns_forms };
-
function form_t.form(layout, data)
- local form = st.stanza("x", form_x_attr);
+ local form = st.stanza("x", { xmlns = xmlns_forms, type = "form" });
if layout.title then
form:tag("title"):text(layout.title):up();
end