aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorFlorian Zeitz <florob@babelmonkeys.de>2012-08-02 21:28:14 +0200
committerFlorian Zeitz <florob@babelmonkeys.de>2012-08-02 21:28:14 +0200
commit042a2277024bf4d4746d8c32ec2661e7128c6895 (patch)
tree5de24c59bf7ff1822826b2c96ac4eb09cb840a39 /plugins
parent0d32004d7ded025d8476ec87d964427fc062ffec (diff)
downloadprosody-042a2277024bf4d4746d8c32ec2661e7128c6895.tar.gz
prosody-042a2277024bf4d4746d8c32ec2661e7128c6895.zip
mod_adhoc: Add support for specifying a default action
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 acdae6b9..ecddcd1d 100644
--- a/plugins/adhoc/adhoc.lib.lua
+++ b/plugins/adhoc/adhoc.lib.lua
@@ -59,8 +59,8 @@ function _M.handle_cmd(command, origin, stanza)
cmdtag:tag("note", {type="warn"}):text(content):up();
elseif name == "error" then
cmdtag:tag("note", {type="error"}):text(content.message):up();
- elseif name =="actions" then
- local actions = st.stanza("actions");
+ elseif name == "actions" then
+ local actions = st.stanza("actions", { execute = content.default });
for _, action in ipairs(content) do
if (action == "prev") or (action == "next") or (action == "complete") then
actions:tag(action):up();