aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-09-23 11:58:15 +0200
committerKim Alvefur <zash@zash.se>2022-09-23 11:58:15 +0200
commit8b82dc338c5e4a6a08cc945d2b65466743f4e352 (patch)
treed3cfdcd3aa1398034b1e6550c63799c07b2a2350
parentafa583dfcdcf1e3a53ccb88691985a1c691046d0 (diff)
downloadprosody-8b82dc338c5e4a6a08cc945d2b65466743f4e352.tar.gz
prosody-8b82dc338c5e4a6a08cc945d2b65466743f4e352.zip
mod_admin_shell: Fix display of session without role (thanks Link Mauve)
This can happen to sessions before they are assigned a role
-rw-r--r--plugins/mod_admin_shell.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index 14fab8ad..97464579 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -948,7 +948,7 @@ available_columns = {
width = 20;
key = "role";
mapper = function(role)
- return role.name;
+ return role and role.name;
end;
}
};