From c56c7d266491ba4fe7bf4564cece7d6c4351baf9 Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 20 Oct 2013 18:44:02 +0000 Subject: [PATCH] lowercase the thing --- modules/sstats/sstats.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/sstats/sstats.js b/modules/sstats/sstats.js index c7ed450..a6cbacb 100644 --- a/modules/sstats/sstats.js +++ b/modules/sstats/sstats.js @@ -115,6 +115,7 @@ var sstats = function(dbot) { if(event.message.charAt(0) != '~') { var wMap = {}; // Why reduce isn't working idk _.each(words, function(word) { + word = word.toLowerCase(); if(!_.has(wMap, word)) wMap[word] = 0; wMap[word]++; });