Software /
code /
prosody
Diff
plugins/mod_admin_telnet.lua @ 10252:aa3f98853816
mod_admin_telnet: Identify native bidi sessions
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 08 Sep 2019 18:51:15 +0200 |
parent | 10239:5c8526790a18 |
child | 10292:8fb546e40756 |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Sun Sep 08 18:51:57 2019 +0200 +++ b/plugins/mod_admin_telnet.lua Sun Sep 08 18:51:15 2019 +0200 @@ -552,7 +552,9 @@ if session.remote then line[#line+1] = "(remote)"; end - if session.is_bidi or session.bidi_session then + if session.incoming and session.outgoing then + line[#line+1] = "(bidi)"; + elseif session.is_bidi or session.bidi_session then line[#line+1] = "(bidi)"; end if session.bosh_version then