diff --git a/modules/spelling.js b/modules/spelling.js index 030d5ed..d96b82d 100644 --- a/modules/spelling.js +++ b/modules/spelling.js @@ -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); } }