Mercurial > prosody-hg
diff util/adhoc.lua @ 7912:2c204ba8e52e
util.adhoc: Pass command data to initial_data callback in order to allow loading per-user settings
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 22 Feb 2017 22:56:28 +0100 |
| parents | 755f705f126a |
| children | e5d00bf4a4d5 |
line wrap: on
line diff
--- a/util/adhoc.lua Tue Feb 21 17:34:01 2017 +0100 +++ b/util/adhoc.lua Wed Feb 22 22:56:28 2017 +0100 @@ -22,7 +22,7 @@ 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
