aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorFlorian Zeitz <florob@babelmonkeys.de>2010-07-10 01:17:07 +0200
committerFlorian Zeitz <florob@babelmonkeys.de>2010-07-10 01:17:07 +0200
commit343f573f9b8cc2413447021c776278e9eec2692d (patch)
tree0e23cc6fed6b74fee28b60713d57b176757a3418 /plugins
parent91a3910031a0115f6cd027706a77c5cb909157b7 (diff)
downloadprosody-343f573f9b8cc2413447021c776278e9eec2692d.tar.gz
prosody-343f573f9b8cc2413447021c776278e9eec2692d.zip
mod_adhoc: Add capability to pass data to forms
Diffstat (limited to 'plugins')
-rw-r--r--plugins/adhoc/adhoc.lib.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/adhoc/adhoc.lib.lua b/plugins/adhoc/adhoc.lib.lua
index 3e3a705d..361f4731 100644
--- a/plugins/adhoc/adhoc.lib.lua
+++ b/plugins/adhoc/adhoc.lib.lua
@@ -69,9 +69,9 @@ function _M.handle_cmd(command, origin, stanza)
end
cmdtag:add_child(actions);
elseif name == "form" then
- cmdtag:add_child(content:form());
+ cmdtag:add_child((content.layout or content):form(content.data));
elseif name == "result" then
- cmdtag:add_child(content.layout:form(content.data, "result"));
+ cmdtag:add_child((content.layout or content):form(content.data, "result"));
elseif name == "other" then
cmdtag:add_child(content);
end