From 174c5e7d9bacd9aced9b5ef1ec031d0758e86b9b Mon Sep 17 00:00:00 2001
From: Randy Sommerfeld <cyan@synchro.net>
Date: Mon, 31 May 2021 07:26:17 +0700
Subject: [PATCH] Turns out we need to disable infinite loop detection after
 all

---
 exec/ircd.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/exec/ircd.js b/exec/ircd.js
index 29d1f1bbd0..a0d776a854 100644
--- a/exec/ircd.js
+++ b/exec/ircd.js
@@ -143,6 +143,7 @@ if (server === undefined) {
 Startup();
 
 js.do_callbacks = true;
+js.branch_limit = 0; /* Disable infinite loop detection */
 
 function config_rehash_semaphore_check() {
 	if(file_date(system.ctrl_dir + "ircd.rehash") > Time_Config_Read) {
-- 
GitLab