From d76b7f8efa357e3ff828cf040df002547b9111ca Mon Sep 17 00:00:00 2001
From: cyan <>
Date: Wed, 27 Feb 2008 05:14:56 +0000
Subject: [PATCH] * Fix previous commit

---
 exec/ircd.js | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/exec/ircd.js b/exec/ircd.js
index 3533f216de..ad59c457b6 100644
--- a/exec/ircd.js
+++ b/exec/ircd.js
@@ -206,11 +206,10 @@ while (!server.terminated) {
 				+ open_plines[pl].local_port);
 			var client_sock=open_plines[pl].accept();
 			if(client_sock) {
-				if (!client_sock.remote_ip_address)
+				if (!client_sock.remote_ip_address) {
 					log(LOG_DEBUG,"Socket has no IP address.  Closing.");
 					client_sock.close();
-				}
-				if (iszlined(client_sock.remote_ip_address)) {
+				} else if (iszlined(client_sock.remote_ip_address)) {
 					client_sock.send(":" + servername
 						+ " 465 * :You've been Z:Lined from this server.\r\n");
 					client_sock.close();
-- 
GitLab