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 | b3ff5eec9c901dcb005c1c1636b3533a1a278c09 (patch) | |
tree | 125e149a63cb819263f7b51fb6c03b1f84e2dd04 | |
parent | 9eea55bee824ffe812459eb7a3cf7ab26462f3dd (diff) | |
download | prosody-b3ff5eec9c901dcb005c1c1636b3533a1a278c09.tar.gz prosody-b3ff5eec9c901dcb005c1c1636b3533a1a278c09.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); |