diff --git a/exec/ircd.js b/exec/ircd.js index 3533f216de3ec7c1fef9e532ca708cefad63af25..ad59c457b652aff4c9f64e66ff73c479b47e7f25 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();