diff options
author | Kim Alvefur <zash@zash.se> | 2021-11-10 20:25:37 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-11-10 20:25:37 +0100 |
commit | 7f68cacb7989b7219c9b387406c003bbfc5445f1 (patch) | |
tree | be318a1af7ed839bcb8772ee0bb9cf061eafe334 /plugins/mod_admin_shell.lua | |
parent | 5f93ef811938ef8c5ed3d7e9bb2fc6746dc25577 (diff) | |
download | prosody-7f68cacb7989b7219c9b387406c003bbfc5445f1.tar.gz prosody-7f68cacb7989b7219c9b387406c003bbfc5445f1.zip |
mod_admin_shell: Indicate bi-directional s2s connections
Diffstat (limited to 'plugins/mod_admin_shell.lua')
-rw-r--r-- | plugins/mod_admin_shell.lua | 3 |
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 "" |