diff --git a/exec/ircd.js b/exec/ircd.js index e15b9ab5120581907df400825cf50aeb75917032..39650ed466432d4d1090be070fa6e4b705817aac 100644 --- a/exec/ircd.js +++ b/exec/ircd.js @@ -68,6 +68,8 @@ const MAX_REALNAME = 50; /* Maximum length of users real name field */ const SERVER_UPTIME = system.timer; const SERVER_UPTIME_STRF = strftime("%a %b %d %Y at %H:%M:%S %Z",Epoch()); +const IRCDCFG_Editor = false; + /*** Global Objects, Arrays and Variables - Always in Mixed_Case ***/ /* Global Objects */ diff --git a/exec/load/ircd/config.js b/exec/load/ircd/config.js index d3acfac0a728dc17a95c46ce9d50de9ee5e6a785..f78609e3dd047587501f66f1f0cdaaa229f2b6eb 100644 --- a/exec/load/ircd/config.js +++ b/exec/load/ircd/config.js @@ -308,13 +308,14 @@ function Read_Config_File() { YLines[0] = new YLine(120,600,100,1000000); /* Hardcoded class for fallback */ - if (!IRCDCFG) { - Scan_For_Banned_Clients(); - for (i in CLines) { - c = CLines[i]; - if ((YLines[c.ircclass].connfreq > 0) && c.port && !Servers[c.servername.toLowerCase()]) - Reset_Autoconnect(c, 1 /* connect immediately */); - } + if (IRCDCFG_Editor) + return; + + Scan_For_Banned_Clients(); + for (i in CLines) { + c = CLines[i]; + if ((YLines[c.ircclass].connfreq > 0) && c.port && !Servers[c.servername.toLowerCase()]) + Reset_Autoconnect(c, 1 /* connect immediately */); } }