aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_shell.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-06-12 16:40:22 +0200
committerKim Alvefur <zash@zash.se>2021-06-12 16:40:22 +0200
commitbf565c76f67d63c0129f41cc48a639c2f4f662ca (patch)
treed0c5d46cfb42e10ca1bcfbb53d25c694026929fb /plugins/mod_admin_shell.lua
parent3fdf0f66abb0a8e3443fd85dcd4370a7e384a3ad (diff)
downloadprosody-bf565c76f67d63c0129f41cc48a639c2f4f662ca.tar.gz
prosody-bf565c76f67d63c0129f41cc48a639c2f4f662ca.zip
mod_admin_shell: module:info: Show module status
Diffstat (limited to 'plugins/mod_admin_shell.lua')
-rw-r--r--plugins/mod_admin_shell.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index 95c7009b..054ddf0a 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -417,6 +417,9 @@ function def_env.module:info(name, hosts)
print("on " .. component_type .. " Component " .. mod.module.host);
end
print(" path: " .. (mod.module.path or "n/a"));
+ if mod.module.status_message then
+ print(" status: [" .. mod.module.status_type .. "] " .. mod.module.status_message);
+ end
end
return true;
end