aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorArc Riley <arcriley@gmail.com>2019-05-02 17:44:21 -0700
committerArc Riley <arcriley@gmail.com>2019-05-02 17:44:21 -0700
commita16b70c96df75d562734f84e5dbda7bae2d41eed (patch)
tree674a15aa72c1bf423efeb68825c471c2226d327a /plugins
parented8b36a84b47e6ab21347d6cf9c616a69e0b3f7d (diff)
downloadprosody-a16b70c96df75d562734f84e5dbda7bae2d41eed.tar.gz
prosody-a16b70c96df75d562734f84e5dbda7bae2d41eed.zip
mod_admin_telnet: include BOSH connections in c2s:count (#998)
Diffstat (limited to 'plugins')
-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 248d6b07..0fbd3ff9 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -612,7 +612,9 @@ local function show_c2s(callback)
end
function def_env.c2s:count()
- return true, "Total: ".. iterators.count(values(module:shared"/*/c2s/sessions")) .." clients";
+ local c2s_count = iterators.count(values(module:shared"/*/c2s/sessions"))
+ local bosh_count = iterators.count(values(module:shared"/*/bosh/sessions"))
+ return true, "Total: ".. c2s_count + bosh_count .." clients";
end
function def_env.c2s:show(match_jid, annotate)