Software /
code /
prosody
Diff
plugins/mod_admin_telnet.lua @ 10083:f30d505e755b
mod_admin_telnet: Include both c2s connections and sessions in c2s:show()
This way both incomplete connections and hibernating c2s sessions are shown.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 26 Jul 2019 20:25:15 +0200 |
parent | 10068:73a8192058f9 |
child | 10084:e4043e3928f2 |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Tue Jul 23 18:06:34 2019 +0200 +++ b/plugins/mod_admin_telnet.lua Fri Jul 26 20:25:15 2019 +0200 @@ -593,8 +593,10 @@ 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