aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-09-08 18:51:15 +0200
committerKim Alvefur <zash@zash.se>2019-09-08 18:51:15 +0200
commit2a9da5b8f04ce7b13d9db194fa01a36ec4b6ac91 (patch)
tree69eacb60b587d9712b89265036b5e1a65f2adaae
parentab8f003076c8ea8484a70be316d2182d17951ea7 (diff)
downloadprosody-2a9da5b8f04ce7b13d9db194fa01a36ec4b6ac91.tar.gz
prosody-2a9da5b8f04ce7b13d9db194fa01a36ec4b6ac91.zip
mod_admin_telnet: Identify native bidi sessions
-rw-r--r--plugins/mod_admin_telnet.lua4
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