aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-11-26 11:40:48 +0100
committerKim Alvefur <zash@zash.se>2021-11-26 11:40:48 +0100
commit51c1c97fe262630c37c89579727512bbc52f1249 (patch)
treef2e85f8133d119a36074f2505ee93657a5f1bd34
parent2ec4d4a83db9aca9fc0fabf4a243db8aa3e20071 (diff)
downloadprosody-51c1c97fe262630c37c89579727512bbc52f1249.tar.gz
prosody-51c1c97fe262630c37c89579727512bbc52f1249.zip
mod_admin_shell: Reduce width of 'Status' column
'unavailable' was the longest possibility, dropping it probably differentiates available from unavailable more, in less space.
-rw-r--r--plugins/mod_admin_shell.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index 75e36e0e..83891c04 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -716,11 +716,11 @@ local available_columns = {
ip = { title = "IP address"; width = 40; key = "ip" };
status = {
title = "Status";
- width = 11;
+ width = 6;
key = "presence";
mapper = function(p)
- if not p then return "unavailable"; end
- return p:get_child_text("show") or "available";
+ if not p then return ""; end
+ return p:get_child_text("show") or "online";
end;
};
secure = {