diff options
author | Kim Alvefur <zash@zash.se> | 2023-04-07 12:58:02 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2023-04-07 12:58:02 +0200 |
commit | 44689ccfd43b7c534c5a77d8bc05216b26defd6f (patch) | |
tree | 0e750960cca8d7a574649b40fee4e298a4464c59 | |
parent | ab15502d8b3f9aace5f16e33a7835abb62eeba97 (diff) | |
download | prosody-44689ccfd43b7c534c5a77d8bc05216b26defd6f.tar.gz prosody-44689ccfd43b7c534c5a77d8bc05216b26defd6f.zip |
mod_admin_shell: Dynamically size JIDs and hosts
Reasoning: a hostname is one part, a JID is 3 parts.
-rw-r--r-- | plugins/mod_admin_shell.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 302bef9c..43903aa7 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -771,7 +771,7 @@ available_columns = { jid = { title = "JID"; description = "Full JID of user session"; - width = 32; + width = "3p"; key = "full_jid"; mapper = function(full_jid, session) return full_jid or get_jid(session) end; }; @@ -779,7 +779,7 @@ available_columns = { title = "Host"; description = "Local hostname"; key = "host"; - width = 22; + width = "1p"; mapper = function(host, session) return host or get_s2s_hosts(session) or "?"; end; @@ -787,7 +787,7 @@ available_columns = { remote = { title = "Remote"; description = "Remote hostname"; - width = 22; + width = "1p"; mapper = function(_, session) return select(2, get_s2s_hosts(session)); end; @@ -912,7 +912,7 @@ available_columns = { sni = { title = "SNI"; description = "Hostname requested in TLS"; - width = 22; -- same as host, remote etc + width = "1p"; -- same as host, remote etc mapper = function(_, session) if not session.conn then return end local sock = session.conn:socket(); |