From d1f21314ab5607034b7b30f9510f304f900c0a59 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Fri, 3 Apr 2020 23:29:28 +0000
Subject: [PATCH] Only *disconnect* because of servers less than two hops away.

---
 exec/load/ircd_unreg.js | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/exec/load/ircd_unreg.js b/exec/load/ircd_unreg.js
index 596db1ce33..7844076106 100644
--- a/exec/load/ircd_unreg.js
+++ b/exec/load/ircd_unreg.js
@@ -200,14 +200,13 @@ function IRC_Unregistered_Commands(cmdline) {
 						break;
 				}
 			}
-			if (parseInt(cmd[2]) < 2) {
-				if ( (!this_nline ||
-				      ( (this_nline.password == "*") && !this.outgoing
-					&& !(this_nline.flags&NLINE_CHECK_QWKPASSWD) )
-				     ) && !qwk_slave) {
+			if ( (!this_nline ||
+			      ( (this_nline.password == "*") && !this.outgoing
+				&& !(this_nline.flags&NLINE_CHECK_QWKPASSWD) )
+			     ) && !qwk_slave) {
+	     			if (parseInt(cmd[2]) < 2) {
 					this.quit("UR Server not configured.");
-					return 0;
-				}
+				return 0;
 			}
 			// Take care of registration right now.
 			Servers[cmd[1].toLowerCase()] = new IRC_Server();
-- 
GitLab