From 4c72bd327cf03dd416a03e9ba6e848519fee73b1 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Fri, 25 May 2012 16:11:07 +0100 Subject: [PATCH] fixed spelling module and youare --- modules/spelling.js | 36 ++++++++++++++++++------------------ modules/youare.js | 12 ++++++------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/modules/spelling.js b/modules/spelling.js index 37f3d51..1e9cec3 100644 --- a/modules/spelling.js +++ b/modules/spelling.js @@ -3,8 +3,8 @@ var spelling = function(dbot) { var dbot = dbot; var last = {}; - var correct = function (data, correction, candidate, output_callback) { - var rawCandidates = last[data.channel][candidate].split(' ').allGroupings(); + var correct = function (event, correction, candidate, output_callback) { + var rawCandidates = last[event.channel][candidate].split(' ').allGroupings(); var candidates = []; for(var i=0;i