From: Jack Allnutt Date: Thu, 12 Jun 2014 15:34:32 +0000 (+0100) Subject: Use strict equality (===) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=353d261a3cb47423f691669295a5ecdc5663b955;p=KiwiIRC.git Use strict equality (===) --- 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; }