diff --git a/modules/spelling.js b/modules/spelling.js index edd4fff..5ce2605 100644 --- a/modules/spelling.js +++ b/modules/spelling.js @@ -19,7 +19,7 @@ var spelling = function(dbot) { } } - if(winnerDistance < Math.ceil(correction.length * 1.33)) { + if(winnerDistance < Math.ceil(winner.length * 1.33)) { if(winner !== correction) { var fix = last[data.channel][candidate].replace(winner, correction); if (/^.ACTION/.test(fix)) {