From e60465cfc1819ec366700632f7c568ee55977b98 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Tue, 1 Nov 2011 17:48:13 +0000 Subject: [PATCH] spelling correct chaining --- modules/spelling.js | 1 + 1 file changed, 1 insertion(+) 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); } }