Software /
code /
prosody
Changeset
5075:4d939d2b1574
mod_adhoc: Add support for specifying a default action
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Thu, 02 Aug 2012 21:28:14 +0200 |
parents | 5074:a87afeea8b48 |
children | 5076:88fb94df9b18 |
files | plugins/adhoc/adhoc.lib.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/adhoc/adhoc.lib.lua Wed Aug 01 01:33:21 2012 +0100 +++ b/plugins/adhoc/adhoc.lib.lua Thu Aug 02 21:28:14 2012 +0200 @@ -59,8 +59,8 @@ 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();