mod_admin_telnet: include BOSH connections in c2s:count (#998)

This commit is contained in:
Arc Riley 2019-05-02 17:44:21 -07:00
parent ed8b36a84b
commit a16b70c96d

View file

@ -612,7 +612,9 @@ local function show_c2s(callback)
end end
function def_env.c2s:count() 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 end
function def_env.c2s:show(match_jid, annotate) function def_env.c2s:show(match_jid, annotate)