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) { } ); }; -