diff options
author | Kim Alvefur <zash@zash.se> | 2019-12-15 20:43:02 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-12-15 20:43:02 +0100 |
commit | d7570eee7e9f2ff351a58ee541395522d5cf7385 (patch) | |
tree | 0f8de1eec47a1475c1cc762486531d0d286d0669 | |
parent | 4e34c40ece0eb19f85720d63b1b0372f59e5616d (diff) | |
download | prosody-d7570eee7e9f2ff351a58ee541395522d5cf7385.tar.gz prosody-d7570eee7e9f2ff351a58ee541395522d5cf7385.zip |
mod_admin_telnet: Fix host sorting
Reversing each %P is a noop
-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 60f92cda..940c3533 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("%P+", string.reverse):reverse() < b:gsub("%P+", string.reverse):reverse(); end function def_env.host:list() |