Software /
code /
prosody
Diff
plugins/mod_admin_adhoc.lua @ 5818:5733a277237a
mod_admin_adhoc: As the only user of set:items(), update... it's now an iterator, and the extra keys() iterator is now unnecessary
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 03 Sep 2013 12:22:22 +0100 |
parent | 5721:579c51cbc12c |
child | 6457:ddcb29a35409 |
line wrap: on
line diff
--- a/plugins/mod_admin_adhoc.lua Tue Sep 03 12:21:43 2013 +0100 +++ b/plugins/mod_admin_adhoc.lua Tue Sep 03 12:22:22 2013 +0100 @@ -489,7 +489,7 @@ for _, host in pairs(hosts) do loaded_modules:append(array(keys(host.modules))); end - loaded_modules = array(keys(set.new(loaded_modules):items())):sort(); + loaded_modules = array(set.new(loaded_modules):items()):sort(); return { module = loaded_modules }; end, function(fields, err) local is_global = false; @@ -631,7 +631,7 @@ for _, host in pairs(hosts) do loaded_modules:append(array(keys(host.modules))); end - loaded_modules = array(keys(set.new(loaded_modules):items())):sort(); + loaded_modules = array(set.new(loaded_modules):items()):sort(); return { module = loaded_modules }; end, function(fields, err) local is_global = false;