comparison mod_adhoc_dataforms_demo/mod_adhoc_dataforms_demo.lua @ 3914:f5caacd475c4

mod_adhoc_dataforms_demo: Add the now required permission mode (#1482)
author Kim Alvefur <zash@zash.se>
date Wed, 26 Feb 2020 22:30:50 +0100
parents 22587eb2d87c
children 4fc6cf528a9a
comparison
equal deleted inserted replaced
3913:21b30b30cc16 3914:f5caacd475c4
118 end 118 end
119 119
120 module:provides("adhoc", 120 module:provides("adhoc",
121 adhoc_new("Dataforms Demo", 121 adhoc_new("Dataforms Demo",
122 "xmpp:zash.se/mod_adhoc_dataforms_demo#form", 122 "xmpp:zash.se/mod_adhoc_dataforms_demo#form",
123 adhoc_util.new_simple_form(form, handler))); 123 adhoc_util.new_simple_form(form, handler), "any"));
124 124
125 125
126 local function multi_step_command(_, data, state) 126 local function multi_step_command(_, data, state)
127 127
128 if data.action == "cancel" then 128 if data.action == "cancel" then
173 end 173 end
174 174
175 module:provides("adhoc", 175 module:provides("adhoc",
176 adhoc_new("Multi-step command demo", 176 adhoc_new("Multi-step command demo",
177 "xmpp:zash.se/mod_adhoc_dataforms_demo#multi", 177 "xmpp:zash.se/mod_adhoc_dataforms_demo#multi",
178 multi_step_command)); 178 multi_step_command, "any"));
179 179