From cef44275b964cb180abd44aa51afc6747ac406d0 Mon Sep 17 00:00:00 2001
From: Randy Sommerfeld <cyan@synchro.net>
Date: Sun, 19 Nov 2023 09:29:17 +0700
Subject: [PATCH] More prep for the UIFC cfg editor

---
 exec/ircd.js             |  2 ++
 exec/load/ircd/config.js | 15 ++++++++-------
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/exec/ircd.js b/exec/ircd.js
index e15b9ab512..39650ed466 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 d3acfac0a7..f78609e3dd 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 */);
 	}
 }
 
-- 
GitLab