aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_telnet.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2016-01-22 13:22:50 +0000
committerMatthew Wild <mwild1@gmail.com>2016-01-22 13:22:50 +0000
commit7d92cd0c7909499c9e2bf2d179989518fd4133dd (patch)
tree8713f897d9a021ab269f7ceca81a92effec5a967 /plugins/mod_admin_telnet.lua
parent2d5779a6108ae79a32de5cca364fd2dfa427fc2c (diff)
parent19b9ea3838a29c06f1bbb6ddec5645187e675dac (diff)
downloadprosody-7d92cd0c7909499c9e2bf2d179989518fd4133dd.tar.gz
prosody-7d92cd0c7909499c9e2bf2d179989518fd4133dd.zip
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-rw-r--r--plugins/mod_admin_telnet.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua
index bb5a13c3..916b29a3 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -594,11 +594,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);