From af70a34a66423dbc05c3e62c749d4bc5e0ef9812 Mon Sep 17 00:00:00 2001 From: meew0 Date: Sat, 5 Dec 2015 00:41:56 +0100 Subject: [PATCH] Small fixes to version check --- entrypoint.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.js b/entrypoint.js index aadea8cf4..7b6fe8afd 100644 --- a/entrypoint.js +++ b/entrypoint.js @@ -17,10 +17,10 @@ var major = parseInt(v[0]), minor = parseInt(v[1]), patch = parseInt(v[2]); -if((major == 0 && minor < 12) || (major == 0 && patch < 7)) { +if((major == 0 && minor < 12) || (major == 0 && minor == 12 && patch < 7)) { console.log("discord.js doesn't support node versions less than 0.12.7."); - console.log("If you /really/ want to run it on this node (" + v + - "), then remove the check from entrypoint.js."); + console.log("If you /really/ want to run it on this node (" + + process.version + "), then remove the check from entrypoint.js."); console.log("However, this is unsupported and WILL cause problems."); console.log("Exiting now."); process.exit(1);