comparison mod_adhoc_cmd_modules/mod_adhoc_cmd_modules.lua @ 241:665552d75ee2

mod_adhoc_cmd_modules: Fix error message
author Florian Zeitz <florob@babelmonkeys.de>
date Thu, 12 Aug 2010 20:57:58 +0200
parents 10a3cca32797
children 67f03b7786af
comparison
equal deleted inserted replaced
240:ef0b580f434d 241:665552d75ee2
41 return { status = "canceled" }; 41 return { status = "canceled" };
42 end 42 end
43 local fields = layout:data(data.form); 43 local fields = layout:data(data.form);
44 if (not fields.module) or (fields.module == "") then 44 if (not fields.module) or (fields.module == "") then
45 return { status = "completed", error = { 45 return { status = "completed", error = {
46 message = "Please specify a module. (This means your client misbehaved, as this field is required)" 46 message = "Please specify a module."
47 } }; 47 } };
48 end 48 end
49 if modulemanager.is_loaded(data.to, fields.module) then 49 if modulemanager.is_loaded(data.to, fields.module) then
50 return { status = "completed", info = "Module already loaded" }; 50 return { status = "completed", info = "Module already loaded" };
51 end 51 end