diff options
author | Florian Zeitz <florob@babelmonkeys.de> | 2012-08-02 21:28:14 +0200 |
---|---|---|
committer | Florian Zeitz <florob@babelmonkeys.de> | 2012-08-02 21:28:14 +0200 |
commit | a3815829fcb92288d1ba9c377ef5a886ba88f547 (patch) | |
tree | 5de24c59bf7ff1822826b2c96ac4eb09cb840a39 | |
parent | 5df2fa71af43770f864e1f3c40ca97620d9da728 (diff) | |
download | prosody-a3815829fcb92288d1ba9c377ef5a886ba88f547.tar.gz prosody-a3815829fcb92288d1ba9c377ef5a886ba88f547.zip |
mod_adhoc: Add support for specifying a default action
-rw-r--r-- | plugins/adhoc/adhoc.lib.lua | 4 |
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(); |