Software /
code /
prosody
Comparison
plugins/adhoc/adhoc.lib.lua @ 4993:5243b74a4cbb
Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 23 Jul 2012 17:32:33 +0100 |
parent | 4975:6f689c155186 |
child | 5075:4d939d2b1574 |
comparison
equal
deleted
inserted
replaced
4992:e79e4d1f75de | 4993:5243b74a4cbb |
---|---|
63 local actions = st.stanza("actions"); | 63 local actions = st.stanza("actions"); |
64 for _, action in ipairs(content) do | 64 for _, action in ipairs(content) do |
65 if (action == "prev") or (action == "next") or (action == "complete") then | 65 if (action == "prev") or (action == "next") or (action == "complete") then |
66 actions:tag(action):up(); | 66 actions:tag(action):up(); |
67 else | 67 else |
68 module:log("error", 'Command "'..command.name.. | 68 module:log("error", "Command %q at node %q provided an invalid action %q", |
69 '" at node "'..command.node..'" provided an invalid action "'..action..'"'); | 69 command.name, command.node, action); |
70 end | 70 end |
71 end | 71 end |
72 cmdtag:add_child(actions); | 72 cmdtag:add_child(actions); |
73 elseif name == "form" then | 73 elseif name == "form" then |
74 cmdtag:add_child((content.layout or content):form(content.values)); | 74 cmdtag:add_child((content.layout or content):form(content.values)); |