Comparison

prosodyctl @ 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
parent 5617:783078bc111c
child 5620:8349ae2a44ce
comparison
equal deleted inserted replaced
5618:4fd2708fe8df 5619:6a87b75aedd5
819 print(" see http://prosody.im/doc/configure#overview for more information.") 819 print(" see http://prosody.im/doc/configure#overview for more information.")
820 print(""); 820 print("");
821 print(" You need to move the following option"..(n>1 and "s" or "")..": "..table.concat(it.to_array(misplaced_options), ", ")); 821 print(" You need to move the following option"..(n>1 and "s" or "")..": "..table.concat(it.to_array(misplaced_options), ", "));
822 end 822 end
823 local subdomain = host:match("^[^.]+"); 823 local subdomain = host:match("^[^.]+");
824 if not(is_component) and (subdomain == "jabber" or subdomain == "xmpp" 824 if not(host_options:contains("component_module")) and (subdomain == "jabber" or subdomain == "xmpp"
825 or subdomain == "chat" or subdomain == "im") then 825 or subdomain == "chat" or subdomain == "im") then
826 print(""); 826 print("");
827 print(" Suggestion: If "..host.. " is a new host with no real users yet, consider renaming it now to"); 827 print(" Suggestion: If "..host.. " is a new host with no real users yet, consider renaming it now to");
828 print(" "..host:gsub("^[^.]+%.", "")..". You can use SRV records to redirect XMPP clients and servers to "..host.."."); 828 print(" "..host:gsub("^[^.]+%.", "")..". You can use SRV records to redirect XMPP clients and servers to "..host..".");
829 print(" For more information see: http://prosody.im/doc/dns"); 829 print(" For more information see: http://prosody.im/doc/dns");