aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMichel Le Bihan <michel@lebihan.pl>2019-06-03 20:51:15 +0200
committerMichel Le Bihan <michel@lebihan.pl>2019-06-03 20:51:15 +0200
commit2bb05d010d9b237a088bd9b4c997451407191d3f (patch)
treee3d5bb8803d6b3999056d4096e18de7b4973cbda /plugins
parent331336cd83ae38f8f963abd61951912127a3c250 (diff)
downloadprosody-2bb05d010d9b237a088bd9b4c997451407191d3f.tar.gz
prosody-2bb05d010d9b237a088bd9b4c997451407191d3f.zip
mod_admin_telnet: Collect array from Bosh connections when appending to connection list
Fixes #1356
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_telnet.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua
index 0fbd3ff9..fa03840b 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -597,7 +597,7 @@ end
local function show_c2s(callback)
local c2s = array.collect(values(module:shared"/*/c2s/sessions"));
- c2s:append(values(module:shared"/*/bosh/sessions"));
+ c2s:append(array.collect(values(module:shared"/*/bosh/sessions")));
c2s:sort(function(a, b)
if a.host == b.host then
if a.username == b.username then