Comparison

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
comparison
equal deleted inserted replaced
11887:b043e1bb8e8e 11888:050c515fe9aa
659 }; 659 };
660 dir = { 660 dir = {
661 title = "Dir"; 661 title = "Dir";
662 width = 3; 662 width = 3;
663 key = "direction"; 663 key = "direction";
664 mapper = function (dir) 664 mapper = function(dir, session)
665 if session.incoming and session.outgoing then return "<->"; end
665 if dir == "outgoing" then return "-->"; end 666 if dir == "outgoing" then return "-->"; end
666 if dir == "incoming" then return "<--"; end 667 if dir == "incoming" then return "<--"; end
667 return "" 668 return ""
668 end; 669 end;
669 }; 670 };