aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_adhoc.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2013-09-03 12:22:22 +0100
committerMatthew Wild <mwild1@gmail.com>2013-09-03 12:22:22 +0100
commitaf9bff4f7ad3dfa4a3d3a9ec67d4a7ebde6ebf1f (patch)
treed09d7bb967b08c4950f0f241be175d676bf61c2e /plugins/mod_admin_adhoc.lua
parentbd8755411c872988afb0343e0e39492f280d8a90 (diff)
downloadprosody-af9bff4f7ad3dfa4a3d3a9ec67d4a7ebde6ebf1f.tar.gz
prosody-af9bff4f7ad3dfa4a3d3a9ec67d4a7ebde6ebf1f.zip
mod_admin_adhoc: As the only user of set:items(), update... it's now an iterator, and the extra keys() iterator is now unnecessary
Diffstat (limited to 'plugins/mod_admin_adhoc.lua')
-rw-r--r--plugins/mod_admin_adhoc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua
index 2c6047da..d5aaa0c4 100644
--- a/plugins/mod_admin_adhoc.lua
+++ b/plugins/mod_admin_adhoc.lua
@@ -489,7 +489,7 @@ local globally_reload_module_handler = adhoc_initial(globally_reload_module_layo
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 @@ local globally_unload_module_handler = adhoc_initial(globally_unload_module_layo
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;