Comparison

prosodyctl @ 8109:2f214c4db170

prosodyctl: Normalize inconsistent whitespace [luacheck]
author Kim Alvefur <zash@zash.se>
date Fri, 21 Apr 2017 14:43:52 +0200
parent 8108:939ccedb509d
child 8110:9aeb1c631f62
comparison
equal deleted inserted replaced
8108:939ccedb509d 8109:2f214c4db170
957 print(""); 957 print("");
958 print(" You need to move the following option"..(n>1 and "s" or "")..": "..table.concat(it.to_array(misplaced_options), ", ")); 958 print(" You need to move the following option"..(n>1 and "s" or "")..": "..table.concat(it.to_array(misplaced_options), ", "));
959 end 959 end
960 local subdomain = host:match("^[^.]+"); 960 local subdomain = host:match("^[^.]+");
961 if not(host_options:contains("component_module")) and (subdomain == "jabber" or subdomain == "xmpp" 961 if not(host_options:contains("component_module")) and (subdomain == "jabber" or subdomain == "xmpp"
962 or subdomain == "chat" or subdomain == "im") then 962 or subdomain == "chat" or subdomain == "im") then
963 print(""); 963 print("");
964 print(" Suggestion: If "..host.. " is a new host with no real users yet, consider renaming it now to"); 964 print(" Suggestion: If "..host.. " is a new host with no real users yet, consider renaming it now to");
965 print(" "..host:gsub("^[^.]+%.", "")..". You can use SRV records to redirect XMPP clients and servers to "..host.."."); 965 print(" "..host:gsub("^[^.]+%.", "")..". You can use SRV records to redirect XMPP clients and servers to "..host..".");
966 print(" For more information see: http://prosody.im/doc/dns"); 966 print(" For more information see: http://prosody.im/doc/dns");
967 end 967 end
968 end 968 end
969 local all_modules = set.new(config["*"].modules_enabled); 969 local all_modules = set.new(config["*"].modules_enabled);
970 local all_options = set.new(it.to_array(it.keys(config["*"]))); 970 local all_options = set.new(it.to_array(it.keys(config["*"])));
971 for host in enabled_hosts() do 971 for host in enabled_hosts() do