Diff

libs/adhoc.lib.lua @ 198:f6702e7ce5f9

libs/adhoc.lib.lua: Update copy (ugh) from Prosody
author Matthew Wild <mwild1@gmail.com>
date Fri, 18 Mar 2011 21:33:53 +0000
parent 116:151c8cc776df
child 383:72be3c2cf602
line wrap: on
line diff
--- 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