Software /
code /
prosody
Diff
plugins/mod_admin_telnet.lua @ 9391:4001eb3f465a
mod_admin_telnet: Fix local reference to util.iterator
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 29 Sep 2018 16:29:30 +0200 |
parent | 9332:048389a9bbd4 |
child | 9403:4416c1a96400 |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Sat Sep 29 12:20:51 2018 +0100 +++ b/plugins/mod_admin_telnet.lua Sat Sep 29 16:29:30 2018 +0200 @@ -877,7 +877,7 @@ 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 @@ 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