Mercurial > prosody-modules
changeset 543:d8614cfe8fc9
mod_server_status: useless "space" removed
author | Marco Cirillo <maranda@lightwitch.org> |
---|---|
date | Tue, 10 Jan 2012 19:52:02 +0000 |
parents | 32d9fd110cb1 |
children | f78a95aa23c4 |
files | mod_server_status/mod_server_status.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_server_status/mod_server_status.lua Tue Jan 10 19:46:54 2012 +0000 +++ b/mod_server_status/mod_server_status.lua Tue Jan 10 19:52:02 2012 +0000 @@ -101,7 +101,7 @@ if show_comps then result.components = {} for _,n in ipairs(show_comps) do - result.components[n] = hosts[name].modules.component and hosts[name].modules.component.connected and "online" or + result.components[n] = hosts[name].modules.component and hosts[name].modules.component.connected and "online" or hosts[name] and hosts[name].modules.component == nil and "online" or "offline" end end