Software /
code /
prosody
Diff
plugins/adhoc/adhoc.lib.lua @ 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 |
parent | 4993:5243b74a4cbb |
child | 5758:ebc074918173 |
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();