diff --git a/modules/spelling.js b/modules/spelling.js index a2c8d1f..69e2189 100644 --- a/modules/spelling.js +++ b/modules/spelling.js @@ -17,7 +17,7 @@ var spelling = function(dbot) { if(winnerDistance < 7) { if(winner !== correction) { - var fix = last[data.channel][candidate].replace(winner, correction); + var fix = last[data.channel][candidate].replace(' ' + winner + ' ', correction); if (/^.ACTION/.test(fix)) { fix = fix.replace(/^.ACTION/, '/me'); }