From 353d261a3cb47423f691669295a5ecdc5663b955 Mon Sep 17 00:00:00 2001 From: Jack Allnutt Date: Thu, 12 Jun 2014 16:34:32 +0100 Subject: [PATCH] Use strict equality (===) --- server/irc/connection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/irc/connection.js b/server/irc/connection.js index d4b5478..c72858e 100644 --- a/server/irc/connection.js +++ b/server/irc/connection.js @@ -460,7 +460,7 @@ IrcConnection.prototype.setEncoding = function (encoding) { //This test is done to check if this encoding also supports //the ASCII charset required by the IRC protocols //(Avoid the use of base64 or incompatible encodings) - if (encoded_test == "TEST") { + if (encoded_test === "TEST") { this.encoding = encoding; return true; } @@ -580,7 +580,7 @@ function onUserKick(event){ var rawSocketConnect = function(socket) { // Make note of the port numbers for any identd lookups // Nodejs < 0.9.6 has no socket.localPort so check this first - if (typeof socket.localPort != 'undefined') { + if (typeof socket.localPort !== 'undefined') { this.identd_port_pair = socket.localPort.toString() + '_' + socket.remotePort.toString(); global.clients.port_pairs[this.identd_port_pair] = this; } -- 2.25.1