aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_telnet.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-29 16:29:30 +0200
committerKim Alvefur <zash@zash.se>2018-09-29 16:29:30 +0200
commitd18f2f7521989989f19f8af817f9af0ff0a40db7 (patch)
tree8aa6db6b24524f80764f2faa536d9a5ade3926f0 /plugins/mod_admin_telnet.lua
parentdb08521d47bdc62fff27ad09d143a50a275dd677 (diff)
downloadprosody-d18f2f7521989989f19f8af817f9af0ff0a40db7.tar.gz
prosody-d18f2f7521989989f19f8af817f9af0ff0a40db7.zip
mod_admin_telnet: Fix local reference to util.iterator
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-rw-r--r--plugins/mod_admin_telnet.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua
index 9b8c7ba9..0a171059 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -877,7 +877,7 @@ function def_env.host:list()
local print = self.session.print;
local i = 0;
local type;
- for host, host_session in it.sorted_pairs(prosody.hosts) do
+ for host, host_session in iterators.sorted_pairs(prosody.hosts) do
i = i + 1;
type = host_session.type;
if type == "local" then
@@ -899,7 +899,7 @@ function def_env.port:list()
local print = self.session.print;
local services = portmanager.get_active_services().data;
local n_services, n_ports = 0, 0;
- for service, interfaces in it.sorted_pairs(services) do
+ for service, interfaces in iterators.sorted_pairs(services) do
n_services = n_services + 1;
local ports_list = {};
for interface, ports in pairs(interfaces) do