From 254f89f7101098658ae69e1b00d44ba38acf9cb8 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 26 Oct 2011 17:26:37 +0100 Subject: [PATCH] var not int jesus christ java --- modules/spelling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/spelling.js b/modules/spelling.js index b516a34..7c59ab3 100644 --- a/modules/spelling.js +++ b/modules/spelling.js @@ -22,7 +22,7 @@ var spelling = function(dbot) { console.log(winner + ' ' + winnerDistance); if(winnerDistance < 3) { - var fix = data.message.replace(winner, correction); + var fix = last[data.channel][data.user].replace(winner, correction); dbot.say(data.channel, data.user + ':' + fix); } } else {