mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 03:33:07 +01:00
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