# HG changeset patch # User Florian Zeitz # Date 1343935694 -7200 # Node ID 4d939d2b1574d287cb1aa4c7c8803bbfed8ffa0e # Parent a87afeea8b4868a25a505ae2c778c7c92044b372 mod_adhoc: Add support for specifying a default action diff -r a87afeea8b48 -r 4d939d2b1574 plugins/adhoc/adhoc.lib.lua --- 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();