aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_telnet.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-12-15 20:44:10 +0100
committerKim Alvefur <zash@zash.se>2019-12-15 20:44:10 +0100
commitd0cd5469d272364bede91196edbb783e3fe1f769 (patch)
tree70f5d08a31ec313c46487a6b5c5c8a1915f5961d /plugins/mod_admin_telnet.lua
parentd7570eee7e9f2ff351a58ee541395522d5cf7385 (diff)
downloadprosody-d0cd5469d272364bede91196edbb783e3fe1f769.tar.gz
prosody-d0cd5469d272364bede91196edbb783e3fe1f769.zip
mod_admin_telnet: Sort by complete labels
Might as well.
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-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 940c3533..6dc7c5c3 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -965,7 +965,7 @@ function def_env.host:deactivate(hostname, reason)
end
local function compare_hosts(a, b)
- return a:gsub("%P+", string.reverse):reverse() < b:gsub("%P+", string.reverse):reverse();
+ return a:gsub("[^.]+", string.reverse):reverse() < b:gsub("[^.]+", string.reverse):reverse();
end
function def_env.host:list()