From 1f3dd159b36d719f6b3276b5c84ef83eb995bb4a Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 17 Oct 2013 04:15:12 +0000 Subject: [PATCH] lowercase the whatist --- modules/sstats/sstats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sstats/sstats.js b/modules/sstats/sstats.js index 59e1cd2..7aa7771 100644 --- a/modules/sstats/sstats.js +++ b/modules/sstats/sstats.js @@ -23,7 +23,7 @@ var sstats = function(dbot) { curses = 0; _.each(words, function(word) { if(this.isUpperCase(word)) capitals++; - if(_.include(this.config.curses, word)) curses++; + if(_.include(this.config.curses, word.toLowerCase())) curses++; }, this); event.uStats.words += wCount;