projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9ce85a
)
mod_admin_telnet: Fix sorting of JIDs in c2s:show() family of functions (thanks looks...
author
Matthew Wild
<mwild1@gmail.com>
Fri, 22 Jan 2016 13:20:00 +0000
(13:20 +0000)
committer
Matthew Wild
<mwild1@gmail.com>
Fri, 22 Jan 2016 13:20:00 +0000
(13:20 +0000)
plugins/mod_admin_telnet.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_admin_telnet.lua
b/plugins/mod_admin_telnet.lua
index 73698adae58745783d1f22f808cede071c50281e..9dfbbc7a379c524ad1dcdc79381a6ce2123014e9 100644
(file)
--- a/
plugins/mod_admin_telnet.lua
+++ b/
plugins/mod_admin_telnet.lua
@@
-557,11
+557,11
@@
local function show_c2s(callback)
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);