3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

allow curse incrusions

This commit is contained in:
reality 2013-10-17 04:48:45 +00:00
parent 1f3dd159b3
commit bb37adc63d

View File

@ -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;