mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +01:00
allow curse incrusions
This commit is contained in:
parent
1f3dd159b3
commit
bb37adc63d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user