Comparison

plugins/mod_admin_telnet.lua @ 9987:521fb218098d

mod_admin_telnet: include BOSH connections in c2s session commands (#998)
author Arc Riley <arcriley@gmail.com>
date Thu, 02 May 2019 16:33:14 -0700
parent 9974:c30933aa0242
child 9988:cdf0b63a0d61
comparison
equal deleted inserted replaced
9986:9cb639ef5c72 9987:521fb218098d
589 return jid_join("["..ip.."]:"..clientport, session.host or "["..serverip.."]:"..serverport); 589 return jid_join("["..ip.."]:"..clientport, session.host or "["..serverip.."]:"..serverport);
590 end 590 end
591 591
592 local function show_c2s(callback) 592 local function show_c2s(callback)
593 local c2s = array.collect(values(module:shared"/*/c2s/sessions")); 593 local c2s = array.collect(values(module:shared"/*/c2s/sessions"));
594 c2s:append(values(module:shared"/*/bosh/sessions"));
594 c2s:sort(function(a, b) 595 c2s:sort(function(a, b)
595 if a.host == b.host then 596 if a.host == b.host then
596 if a.username == b.username then 597 if a.username == b.username then
597 return (a.resource or "") > (b.resource or ""); 598 return (a.resource or "") > (b.resource or "");
598 end 599 end