From 0772e8c41f0533b7844bf49c706d2d50737a5cd5 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 7 Oct 2014 02:12:22 -0400 Subject: [PATCH] fixed #2236 - using !gte instead of lte --- src/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins.js b/src/plugins.js index 41f10d6c23..7310e0682d 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -172,7 +172,7 @@ var fs = require('fs'), // End backwards compatibility block (#1437) if (pluginData.compatibility && semver.validRange(pluginData.compatibility)) { - if (semver.ltr(pkg.version, pluginData.compatibility)) { + if (!semver.gtr(pkg.version, pluginData.compatibility)) { // NodeBB may not be new enough to run this plugin process.stdout.write('\n'); winston.warn('[plugins/' + pluginData.id + '] This plugin may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing.');