diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_admin_shell.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 5c9d3df7..3a2a346e 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -966,11 +966,12 @@ available_columns = { }; role = { title = "Role"; - description = "Session role"; - width = 20; + description = "Session role with 'prosody:' prefix removed"; + width = #"admin"; key = "role"; mapper = function(role) - return role and role.name; + local name = role and role.name; + return name and name:match"^prosody:(%w+)" or name; end; } }; |