Software /
code /
prosody
Comparison
plugins/mod_admin_adhoc.lua @ 4955:4f1b6a4784f9
mod_admin_adhoc: Remove unused variable and save a bit of CPU...
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 19 Jul 2012 15:36:16 +0100 |
parent | 4926:58714123f600 |
child | 4956:bc26e6d519ae |
comparison
equal
deleted
inserted
replaced
4954:318624ffe74e | 4955:4f1b6a4784f9 |
---|---|
451 else | 451 else |
452 return { status = "completed", error = { message = 'Failed to load module "'..fields.module..'" on host "'..data.to.. | 452 return { status = "completed", error = { message = 'Failed to load module "'..fields.module..'" on host "'..data.to.. |
453 '". Error was: "'..tostring(err or "<unspecified>")..'"' } }; | 453 '". Error was: "'..tostring(err or "<unspecified>")..'"' } }; |
454 end | 454 end |
455 else | 455 else |
456 local modules = array.collect(keys(hosts[data.to].modules)):sort(); | |
457 return { status = "executing", form = layout }, "executing"; | 456 return { status = "executing", form = layout }, "executing"; |
458 end | 457 end |
459 end | 458 end |
460 | 459 |
461 function reload_modules_handler(self, data, state) | 460 function reload_modules_handler(self, data, state) |