Software /
code /
prosody-modules
Comparison
mod_adhoc/adhoc/adhoc.lib.lua @ 123:c04443ea114c
mod_adhoc, mod_adhoc_cmd_admin: use util.datforms for type="result" forms
author | Florian Zeitz <florob@babelmonkeys.de> |
---|---|
date | Fri, 22 Jan 2010 19:05:28 +0100 |
parent | 122:c3a874eec712 |
child | 124:843cadf36306 |
comparison
equal
deleted
inserted
replaced
122:c3a874eec712 | 123:c04443ea114c |
---|---|
52 else | 52 else |
53 module:log("error", 'Command "'..command.name.. | 53 module:log("error", 'Command "'..command.name.. |
54 '" at node "'..command.node..'" provided an invalid action "'..action..'"'); | 54 '" at node "'..command.node..'" provided an invalid action "'..action..'"'); |
55 end | 55 end |
56 end | 56 end |
57 cmdtag:add_child(actions):up(); | 57 cmdtag:add_child(actions); |
58 elseif name == "form" then | 58 elseif name == "form" then |
59 cmdtag:add_child(data.form:form()):up(); | 59 cmdtag:add_child(content:form()); |
60 elseif name == "result" then | |
61 cmdtag:add_child(content.layout:form(content.data, "result")); | |
60 elseif name == "other" then | 62 elseif name == "other" then |
61 cmdtag:add_child(content):up(); | 63 cmdtag:add_child(content); |
62 end | 64 end |
63 end | 65 end |
64 stanza:add_child(cmdtag); | 66 stanza:add_child(cmdtag); |
65 origin.send(stanza); | 67 origin.send(stanza); |
66 | 68 |