aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-02-22 22:56:28 +0100
committerKim Alvefur <zash@zash.se>2017-02-22 22:56:28 +0100
commit8dc1b0ae47d0c777a59a914cba8dc7c7785f2ab4 (patch)
treef2c53d86d6edf7fdaf76ce4bcf9d206e83e59ded /util
parent6ca01c40ab3a609671efd252ac6a96561b9eb12c (diff)
downloadprosody-8dc1b0ae47d0c777a59a914cba8dc7c7785f2ab4.tar.gz
prosody-8dc1b0ae47d0c777a59a914cba8dc7c7785f2ab4.zip
util.adhoc: Pass command data to initial_data callback in order to allow loading per-user settings
Diffstat (limited to 'util')
-rw-r--r--util/adhoc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/adhoc.lua b/util/adhoc.lua
index 671e85cf..17c9eee5 100644
--- a/util/adhoc.lua
+++ b/util/adhoc.lua
@@ -22,7 +22,7 @@ local function new_initial_data_form(form, initial_data, result_handler)
return result_handler(fields, err, data);
else
return { status = "executing", actions = {"next", "complete", default = "complete"},
- form = { layout = form, values = initial_data() } }, "executing";
+ form = { layout = form, values = initial_data(data) } }, "executing";
end
end
end