Diff

plugins/mod_admin_shell.lua @ 11888:050c515fe9aa

mod_admin_shell: Indicate bi-directional s2s connections
author Kim Alvefur <zash@zash.se>
date Wed, 10 Nov 2021 20:25:37 +0100
parent 11887:b043e1bb8e8e
child 11889:df76802dc09c
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua	Wed Nov 10 16:28:54 2021 +0100
+++ b/plugins/mod_admin_shell.lua	Wed Nov 10 20:25:37 2021 +0100
@@ -661,7 +661,8 @@
 		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 ""