aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_admin_telnet.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua
index 55ed89b8..af0ac9e7 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -593,8 +593,10 @@ local function get_jid(session)
end
local function show_c2s(callback)
- local c2s = array.collect(values(module:shared"/*/c2s/sessions"));
+ local c2s = array.collect(values(prosody.full_sessions));
+ c2s:append(array.collect(values(module:shared"/*/c2s/sessions")));
c2s:append(array.collect(values(module:shared"/*/bosh/sessions")));
+ c2s:unique();
c2s:sort(function(a, b)
if a.host == b.host then
if a.username == b.username then