Software /
code /
prosody
Changeset
7091:1c3b38f80571
Merge 0.10->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 22 Jan 2016 13:22:50 +0000 |
parents | 7089:890f4b2cc444 (current diff) 7090:7aa37d70944b (diff) |
children | 7099:8e64e7b82928 |
files | plugins/mod_admin_telnet.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Wed Jan 20 15:04:42 2016 +0100 +++ b/plugins/mod_admin_telnet.lua Fri Jan 22 13:22:50 2016 +0000 @@ -594,11 +594,11 @@ c2s:sort(function(a, b) if a.host == b.host then if a.username == b.username then - return a.resource or "" > b.resource or ""; + return (a.resource or "") > (b.resource or ""); end - return a.username or "" > b.username or ""; + return (a.username or "") > (b.username or ""); end - return a.host or "" > b.host or ""; + return (a.host or "") > (b.host or ""); end):map(function (session) callback(get_jid(session), session) end);