From 5c676bab58d9f66155cf0738a8f835de845c44e2 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 29 Jan 2023 18:57:28 +0100 Subject: mod_admin_shell: Make Role and Affiliation columns the same width for aesthetics The length of the title "Affiliation" made them both close enough that it looked off. --- plugins/mod_admin_shell.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 1b28029b..04e35a23 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -1402,7 +1402,7 @@ function def_env.muc:occupants(room_jid, filter) local print = self.session.print; local row = format_table({ - { title = "Role"; width = #"participant"; key = "role" }; -- longest role name + { title = "Role"; width = 12; key = "role" }; -- longest role name { title = "JID"; width = "75%"; key = "bare_jid" }; { title = "Nickname"; width = "25%"; key = "nick"; mapper = jid_resource }; }, self.session.width); @@ -1434,7 +1434,7 @@ function def_env.muc:affiliations(room_jid, filter) local print = self.session.print; local row = format_table({ - { title = "Affiliation"; width = #"outcast" }; -- longest affiliation name + { title = "Affiliation"; width = 12 }; -- longest affiliation name { title = "JID"; width = "75%" }; { title = "Nickname"; width = "25%"; key = "reserved_nickname" }; }, self.session.width); -- cgit v1.2.3