diff options
author | Kim Alvefur <zash@zash.se> | 2019-07-26 20:25:15 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-07-26 20:25:15 +0200 |
commit | 92571bfb04cc6cdf0bdd5d634b4f3be35f4d1117 (patch) | |
tree | 6e3d366eedb16abcb6d14ae48d92ed616c0aa265 /plugins | |
parent | a9f304b6bdf3c3ef34cf1db64cd0634888e6f9a7 (diff) | |
download | prosody-92571bfb04cc6cdf0bdd5d634b4f3be35f4d1117.tar.gz prosody-92571bfb04cc6cdf0bdd5d634b4f3be35f4d1117.zip |
mod_admin_telnet: Include both c2s connections and sessions in c2s:show()
This way both incomplete connections and hibernating c2s sessions are shown.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_admin_telnet.lua | 4 |
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 |