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