3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +01:00

distance 5

This commit is contained in:
Luke Slater 2011-12-14 19:15:32 +00:00
parent d5d68fcc51
commit 817915958b

View File

@ -20,7 +20,7 @@ var spelling = function(dbot) {
}
}
if(winnerDistance < 3) {
if(winnerDistance < 5) {
if(winner !== correction) {
var fix = last[data.channel][data.user].replace(winner, correction);
last[data.channel][data.user] = fix;