From 5cdc9e0e42a712f3ed75e49faee41d70875ea728 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Fri, 3 Apr 2020 23:27:54 +0000
Subject: [PATCH] Only check N: lines for servers less than two hops away...

---
 exec/ircd.js            |  1 -
 exec/load/ircd_unreg.js | 14 ++++++++------
 exec/load/ircd_user.js  |  1 -
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/exec/ircd.js b/exec/ircd.js
index 37d6483e24..87a0a8c6f1 100644
--- a/exec/ircd.js
+++ b/exec/ircd.js
@@ -1074,7 +1074,6 @@ function Queue_Recv(sock) {
 			this._recv_bytes = this._recv_bytes.substr(pos+1);
 			if (cmd[cmd.length-1] == '\r')
 				cmd = cmd.substr(0, cmd.length - 1);
-log(LOG_DEBUG, "Adding "+cmd);
 			this.add(cmd);
 		}
 	}
diff --git a/exec/load/ircd_unreg.js b/exec/load/ircd_unreg.js
index 92111010f3..596db1ce33 100644
--- a/exec/load/ircd_unreg.js
+++ b/exec/load/ircd_unreg.js
@@ -200,12 +200,14 @@ function IRC_Unregistered_Commands(cmdline) {
 						break;
 				}
 			}
-			if ( (!this_nline ||
-			      ( (this_nline.password == "*") && !this.outgoing
-				&& !(this_nline.flags&NLINE_CHECK_QWKPASSWD) )
-			     ) && !qwk_slave) {
-				this.quit("UR Server not configured.");
-				return 0;
+			if (parseInt(cmd[2]) < 2) {
+				if ( (!this_nline ||
+				      ( (this_nline.password == "*") && !this.outgoing
+					&& !(this_nline.flags&NLINE_CHECK_QWKPASSWD) )
+				     ) && !qwk_slave) {
+					this.quit("UR Server not configured.");
+					return 0;
+				}
 			}
 			// Take care of registration right now.
 			Servers[cmd[1].toLowerCase()] = new IRC_Server();
diff --git a/exec/load/ircd_user.js b/exec/load/ircd_user.js
index 928e628cc3..ff20a728e6 100644
--- a/exec/load/ircd_user.js
+++ b/exec/load/ircd_user.js
@@ -263,7 +263,6 @@ function User_Work(cmdline) {
 	   2 seconds from now. */
 	if ( (time() - this.idletime) <= 2) {
 		if (this.throttle_count >= 4) {
-log(LOG_DEBUG, "Prepending "+cmdline);
 			this.recvq.prepend(cmdline);
 			return 0;
 		}
-- 
GitLab