Mercurial > prosody-hg
comparison plugins/adhoc/adhoc.lib.lua @ 3484:66910810a9f7
mod_adhoc: Fix passing data to util.dataforms
| author | Florian Zeitz <florob@babelmonkeys.de> |
|---|---|
| date | Wed, 01 Sep 2010 22:44:30 +0200 |
| parents | c9294e190bb6 |
| children | bc139431830b |
comparison
equal
deleted
inserted
replaced
| 3483:443139c396c5 | 3484:66910810a9f7 |
|---|---|
| 67 '" at node "'..command.node..'" provided an invalid action "'..action..'"'); | 67 '" at node "'..command.node..'" provided an invalid action "'..action..'"'); |
| 68 end | 68 end |
| 69 end | 69 end |
| 70 cmdtag:add_child(actions); | 70 cmdtag:add_child(actions); |
| 71 elseif name == "form" then | 71 elseif name == "form" then |
| 72 cmdtag:add_child((content.layout or content):form(content.data)); | 72 cmdtag:add_child((content.layout or content):form(content.values)); |
| 73 elseif name == "result" then | 73 elseif name == "result" then |
| 74 cmdtag:add_child((content.layout or content):form(content.data, "result")); | 74 cmdtag:add_child((content.layout or content):form(content.values, "result")); |
| 75 elseif name == "other" then | 75 elseif name == "other" then |
| 76 cmdtag:add_child(content); | 76 cmdtag:add_child(content); |
| 77 end | 77 end |
| 78 end | 78 end |
| 79 stanza:add_child(cmdtag); | 79 stanza:add_child(cmdtag); |
