Diff

plugins/mod_admin_telnet.lua @ 10509:0aa0fd1adbb0

mod_admin_telnet: Use existing host comparison when comparing JIDs
author Kim Alvefur <zash@zash.se>
date Sun, 15 Dec 2019 21:44:58 +0100
parent 10508:edd323b30de1
child 10510:fe0884ddb4f8
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua	Sun Dec 15 22:08:20 2019 +0100
+++ b/plugins/mod_admin_telnet.lua	Sun Dec 15 21:44:58 2019 +0100
@@ -630,7 +630,7 @@
 			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);