aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-11-10 20:25:37 +0100
committerKim Alvefur <zash@zash.se>2021-11-10 20:25:37 +0100
commit7f68cacb7989b7219c9b387406c003bbfc5445f1 (patch)
treebe318a1af7ed839bcb8772ee0bb9cf061eafe334
parent5f93ef811938ef8c5ed3d7e9bb2fc6746dc25577 (diff)
downloadprosody-7f68cacb7989b7219c9b387406c003bbfc5445f1.tar.gz
prosody-7f68cacb7989b7219c9b387406c003bbfc5445f1.zip
mod_admin_shell: Indicate bi-directional s2s connections
-rw-r--r--plugins/mod_admin_shell.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index 6449f3a0..f4b46bfb 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -661,7 +661,8 @@ local available_columns = {
title = "Dir";
width = 3;
key = "direction";
- mapper = function (dir)
+ mapper = function(dir, session)
+ if session.incoming and session.outgoing then return "<->"; end
if dir == "outgoing" then return "-->"; end
if dir == "incoming" then return "<--"; end
return ""