diff options
author | Kim Alvefur <zash@zash.se> | 2019-12-15 21:44:58 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-12-15 21:44:58 +0100 |
commit | 13622b141e299ba3df60b82153084f34bdcb8e6f (patch) | |
tree | 125e149a63cb819263f7b51fb6c03b1f84e2dd04 | |
parent | 567e4183b5e2ba4fe92ef0ef86b34327f036e9f1 (diff) | |
download | prosody-13622b141e299ba3df60b82153084f34bdcb8e6f.tar.gz prosody-13622b141e299ba3df60b82153084f34bdcb8e6f.zip |
mod_admin_telnet: Use existing host comparison when comparing JIDs
-rw-r--r-- | plugins/mod_admin_telnet.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua index fbaa80d0..a454f568 100644 --- a/plugins/mod_admin_telnet.lua +++ b/plugins/mod_admin_telnet.lua @@ -630,7 +630,7 @@ local function show_c2s(callback) end return (a.username or "") > (b.username or ""); end - return (a.host or "") > (b.host or ""); + return _sort_hosts(a.host or "", b.host or ""); end):map(function (session) callback(get_jid(session), session) end); |