+-- Copyright (C) 2009-2010 Florian Zeitz
+--
+-- This file is MIT/X11 licensed. Please see the
+-- COPYING file in the source package for more information.
+--
+
local st, uuid = require "util.stanza", require "util.uuid";
local xmlns_cmd = "http://jabber.org/protocol/commands";
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
end
cmdtag:add_child(actions);
elseif name == "form" then
- cmdtag:add_child(content:form());
+ cmdtag:add_child((content.layout or content):form(content.values));
elseif name == "result" then
- cmdtag:add_child(content.layout:form(content.data, "result"));
+ cmdtag:add_child((content.layout or content):form(content.values, "result"));
elseif name == "other" then
cmdtag:add_child(content);
end