diff options
author | Arc Riley <arcriley@gmail.com> | 2019-05-02 17:44:21 -0700 |
---|---|---|
committer | Arc Riley <arcriley@gmail.com> | 2019-05-02 17:44:21 -0700 |
commit | da0d3e296ca8fef7882cbf571039b153525a1185 (patch) | |
tree | 674a15aa72c1bf423efeb68825c471c2226d327a /plugins/mod_admin_telnet.lua | |
parent | cdbb6348f6536cb270544c933f3e45ccf66ef585 (diff) | |
download | prosody-da0d3e296ca8fef7882cbf571039b153525a1185.tar.gz prosody-da0d3e296ca8fef7882cbf571039b153525a1185.zip |
mod_admin_telnet: include BOSH connections in c2s:count (#998)
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-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 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) |