aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-12-15 21:44:58 +0100
committerKim Alvefur <zash@zash.se>2019-12-15 21:44:58 +0100
commitb3ff5eec9c901dcb005c1c1636b3533a1a278c09 (patch)
tree125e149a63cb819263f7b51fb6c03b1f84e2dd04
parent9eea55bee824ffe812459eb7a3cf7ab26462f3dd (diff)
downloadprosody-b3ff5eec9c901dcb005c1c1636b3533a1a278c09.tar.gz
prosody-b3ff5eec9c901dcb005c1c1636b3533a1a278c09.zip
mod_admin_telnet: Use existing host comparison when comparing JIDs
-rw-r--r--plugins/mod_admin_telnet.lua2
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);