aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_telnet.lua
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
commitf1dfdac89b396d5c390d64550123a5a1fc54b554 (patch)
tree69eacb60b587d9712b89265036b5e1a65f2adaae /plugins/mod_admin_telnet.lua
parent445057889fe5f3abf431eb7a5695baca77a79031 (diff)
downloadprosody-f1dfdac89b396d5c390d64550123a5a1fc54b554.tar.gz
prosody-f1dfdac89b396d5c390d64550123a5a1fc54b554.zip
mod_admin_telnet: Identify native bidi sessions
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-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