spelling correct chaining

This commit is contained in:
Luke Slater 2011-11-01 17:48:13 +00:00
parent 8f48ce5289
commit e60465cfc1

View File

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