Skip to content
Snippets Groups Projects
Commit 576d1319 authored by Randy Sommerfeld's avatar Randy Sommerfeld
Browse files

Squelch log output if in ircdcfg.js

parent b73718c9
No related branches found
No related tags found
No related merge requests found
...@@ -295,7 +295,8 @@ function Read_Config_File() { ...@@ -295,7 +295,8 @@ function Read_Config_File() {
if(!file_exists(fname)) if(!file_exists(fname))
fname=system.ctrl_dir + "ircd.conf"; fname=system.ctrl_dir + "ircd.conf";
} }
log(LOG_INFO,"Trying to read configuration from: " + fname); if (!IRCDCFG_Editor)
log(LOG_INFO,"Trying to read configuration from: " + fname);
var file_handle = new File(fname); var file_handle = new File(fname);
if (file_handle.open("r")) { if (file_handle.open("r")) {
if (fname.substr(fname.length-3,3) == "ini") if (fname.substr(fname.length-3,3) == "ini")
...@@ -303,11 +304,11 @@ function Read_Config_File() { ...@@ -303,11 +304,11 @@ function Read_Config_File() {
else else
read_conf_config(file_handle); read_conf_config(file_handle);
file_handle.close(); file_handle.close();
} else { } else if (!IRCDCFG_Editor) {
log(LOG_NOTICE, "Couldn't open configuration file! Proceeding with defaults only."); log(LOG_NOTICE, "Couldn't open configuration file! Proceeding with defaults only.");
} }
if (true_array_len(ILines) < 1) if ((true_array_len(ILines) < 1) && !IRCDCFG_Editor)
log(LOG_WARNING, "!WARNING Nobody appears to be allowed to connect - configure in [Allow]"); log(LOG_WARNING, "!WARNING Nobody appears to be allowed to connect - configure in [Allow]");
Time_Config_Read = Epoch(); Time_Config_Read = Epoch();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment