mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 11:42:36 +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(winnerDistance < 3) {
|
||||||
if(winner !== correction) {
|
if(winner !== correction) {
|
||||||
var fix = last[data.channel][data.user].replace(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);
|
dbot.say(data.channel, data.user + ' meant: ' + fix);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user