# HG changeset patch # User Kim Alvefur # Date 1663927095 -7200 # Node ID 31d719ce8c64a34e4cc3d97c041dece6cac5e18f # Parent 9f100ab9ffdf4544a7de81623adf6025fb411887 mod_admin_shell: Fix display of session without role (thanks Link Mauve) This can happen to sessions before they are assigned a role diff -r 9f100ab9ffdf -r 31d719ce8c64 plugins/mod_admin_shell.lua --- a/plugins/mod_admin_shell.lua Wed Sep 21 15:00:06 2022 +0100 +++ b/plugins/mod_admin_shell.lua Fri Sep 23 11:58:15 2022 +0200 @@ -948,7 +948,7 @@ width = 20; key = "role"; mapper = function(role) - return role.name; + return role and role.name; end; } };