diff --git a/modules/spelling.js b/modules/spelling.js index b376893..5db8da4 100644 --- a/modules/spelling.js +++ b/modules/spelling.js @@ -10,7 +10,7 @@ var spelling = function(dbot) { var correction = q[1]; var candidates = last[data.channel][data.user].split(' '); var winner = false; - var winnerDistance = 99999999; //urgh fix later + var winnerDistance = Infinity; //urgh fix later for(var i=0;i