diff options
author | Kim Alvefur <zash@zash.se> | 2019-09-08 18:51:15 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-09-08 18:51:15 +0200 |
commit | 2a9da5b8f04ce7b13d9db194fa01a36ec4b6ac91 (patch) | |
tree | 69eacb60b587d9712b89265036b5e1a65f2adaae /plugins | |
parent | ab8f003076c8ea8484a70be316d2182d17951ea7 (diff) | |
download | prosody-2a9da5b8f04ce7b13d9db194fa01a36ec4b6ac91.tar.gz prosody-2a9da5b8f04ce7b13d9db194fa01a36ec4b6ac91.zip |
mod_admin_telnet: Identify native bidi sessions
Diffstat (limited to 'plugins')
-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 c184924c..5c08b8d1 100644 --- a/plugins/mod_admin_telnet.lua +++ b/plugins/mod_admin_telnet.lua @@ -552,7 +552,9 @@ local function session_flags(session, line) 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 |