Software /
code /
prosody
Changeset
5619:6a87b75aedd5
prosodyctl: check config: Fix check for whether host is a component
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 22 May 2013 13:32:38 +0100 |
parents | 5618:4fd2708fe8df |
children | 5620:8349ae2a44ce |
files | prosodyctl |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/prosodyctl Tue May 21 13:21:30 2013 +0100 +++ b/prosodyctl Wed May 22 13:32:38 2013 +0100 @@ -821,7 +821,7 @@ print(" You need to move the following option"..(n>1 and "s" or "")..": "..table.concat(it.to_array(misplaced_options), ", ")); end local subdomain = host:match("^[^.]+"); - if not(is_component) and (subdomain == "jabber" or subdomain == "xmpp" + if not(host_options:contains("component_module")) and (subdomain == "jabber" or subdomain == "xmpp" or subdomain == "chat" or subdomain == "im") then print(""); print(" Suggestion: If "..host.. " is a new host with no real users yet, consider renaming it now to");