diff options
author | Kim Alvefur <zash@zash.se> | 2019-12-15 20:44:10 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-12-15 20:44:10 +0100 |
commit | a34238b2a26a3f4033fd732bc63f0e2d831a14a6 (patch) | |
tree | 70f5d08a31ec313c46487a6b5c5c8a1915f5961d /plugins | |
parent | 821603db8aaadd6a068a619feb3ac5e7c2c6e099 (diff) | |
download | prosody-a34238b2a26a3f4033fd732bc63f0e2d831a14a6.tar.gz prosody-a34238b2a26a3f4033fd732bc63f0e2d831a14a6.zip |
mod_admin_telnet: Sort by complete labels
Might as well.
Diffstat (limited to 'plugins')
-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 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() |