forked from GitHub/dbot
spelling correct chaining
This commit is contained in:
parent
8f48ce5289
commit
e60465cfc1
@ -22,6 +22,7 @@ var spelling = function(dbot) {
|
||||
if(winnerDistance < 3) {
|
||||
if(winner !== correction) {
|
||||
var fix = last[data.channel][data.user].replace(winner, correction);
|
||||
last[data.channel][data.user] = fix;
|
||||
dbot.say(data.channel, data.user + ' meant: ' + fix);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user