comparison mod_adhoc_cmd_admin/mod_adhoc_cmd_admin.lua @ 251:d36160f4961f

mod_adhoc_cmd_admin: Use correct dataform layout
author Florian Zeitz <florob@babelmonkeys.de>
date Fri, 03 Sep 2010 00:39:59 +0200
parents 67f03b7786af
children
comparison
equal deleted inserted replaced
250:67f03b7786af 251:d36160f4961f
296 if state then 296 if state then
297 if data.action == "cancel" then 297 if data.action == "cancel" then
298 return { status = "canceled" }; 298 return { status = "canceled" };
299 end 299 end
300 300
301 local fields = add_user_layout:data(data.form); 301 local fields = get_user_roster_layout:data(data.form);
302 302
303 if not fields.accountjid then 303 if not fields.accountjid then
304 return { status = "completed", error = { message = "Please specify a JID" } }; 304 return { status = "completed", error = { message = "Please specify a JID" } };
305 end 305 end
306 306