diff --git a/modules/sstats/sstats.js b/modules/sstats/sstats.js index 7aa7771..eecaccf 100644 --- a/modules/sstats/sstats.js +++ b/modules/sstats/sstats.js @@ -23,7 +23,9 @@ var sstats = function(dbot) { curses = 0; _.each(words, function(word) { if(this.isUpperCase(word)) capitals++; - if(_.include(this.config.curses, word.toLowerCase())) curses++; + if(_.any(this.config.curses, function(curse) { return word.toLowerCase().indexOf(curse) != -1; })) { + curses++; + } }, this); event.uStats.words += wCount;