From: Jack Allnutt Date: Wed, 3 Apr 2013 19:13:47 +0000 (+0100) Subject: Fix off-by-one error in checking node version X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9de636f9240bbacf142c4ae83403e01571d89915;p=KiwiIRC.git Fix off-by-one error in checking node version --- diff --git a/server/irc/connection.js b/server/irc/connection.js index 528c9a9..d4f1a03 100644 --- a/server/irc/connection.js +++ b/server/irc/connection.js @@ -14,9 +14,9 @@ var net = require('net'), var version_values = process.version.substr(1).split('.').map(function (item) { return parseInt(item, 10); }); - + // If we have a suitable Nodejs version, bring int he socks functionality -if (version_values[0] >= 10) { +if (version_values[1] >= 10) { Socks = require('../socks.js'); }