From ae02f35baa2670fefa0f268d7b27e21ac9077ff8 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Thu, 8 Sep 2016 22:32:24 -0600 Subject: [PATCH] Fix NaN issue in string_format.js --- core/string_format.js | 2 +- mods/whos_online.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/string_format.js b/core/string_format.js index e752064b..9abac186 100644 --- a/core/string_format.js +++ b/core/string_format.js @@ -322,7 +322,7 @@ module.exports = function format(fmt, obj) { tokens = tokenizeFormatSpec(formatSpec || ''); - if(!isNaN(parseInt(value))) { + if(_.isNumber(value)) { out += formatNumber(value, tokens); } else { out += formatString(value, tokens); diff --git a/mods/whos_online.js b/mods/whos_online.js index 71db4f00..770528f0 100644 --- a/mods/whos_online.js +++ b/mods/whos_online.js @@ -81,4 +81,3 @@ WhosOnlineModule.prototype.mciReady = function(mciData, cb) { } ); }; -