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 | 3effd36ff0bb97de406768b838cf51c9d7c0af41 (patch) | |
tree | 6e3d366eedb16abcb6d14ae48d92ed616c0aa265 /plugins | |
parent | d9649edc2c6a2c22d2cdc5c8fe577deb510580bf (diff) | |
download | prosody-3effd36ff0bb97de406768b838cf51c9d7c0af41.tar.gz prosody-3effd36ff0bb97de406768b838cf51c9d7c0af41.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 |