# HG changeset patch # User Matthew Wild # Date 1300484033 0 # Node ID f6702e7ce5f96b6ec5a7626c6572b3e8b410de16 # Parent 7e98cf2c1d8dbb6bdc4bab31c6d1149079c3c208 libs/adhoc.lib.lua: Update copy (ugh) from Prosody diff -r 7e98cf2c1d8d -r f6702e7ce5f9 libs/adhoc.lib.lua --- a/libs/adhoc.lib.lua Thu Mar 17 18:33:52 2011 +0100 +++ b/libs/adhoc.lib.lua Fri Mar 18 21:33:53 2011 +0000 @@ -46,7 +46,7 @@ stanza = st.error_reply(stanza, data.error.type, data.error.condition, data.error.message); origin.send(stanza); return true; - else + else cmdtag = command:cmdtag("executing", sessionid); end @@ -69,9 +69,9 @@ end cmdtag:add_child(actions); elseif name == "form" then - cmdtag:add_child((content.layout or content):form(content.data)); + cmdtag:add_child((content.layout or content):form(content.values)); elseif name == "result" then - cmdtag:add_child((content.layout or content):form(content.data, "result")); + cmdtag:add_child((content.layout or content):form(content.values, "result")); elseif name == "other" then cmdtag:add_child(content); end