var not int jesus christ java

This commit is contained in:
Luke Slater 2011-10-26 17:21:21 +01:00
parent e874ffbfc2
commit adbcb4f1fa

View File

@ -10,7 +10,7 @@ var spelling = function(dbot) {
var candidates = last[data.channel][data.user].split(' '); var candidates = last[data.channel][data.user].split(' ');
var winner = false; var winner = false;
for(int i=0;i<candidates.length;i++) { for(var i=0;i<candidates.length;i++) {
var distance = String.prototype.distance(correction, candidates[i]); var distance = String.prototype.distance(correction, candidates[i]);
if(distance > winner) { if(distance > winner) {
winner = candidates[i]; winner = candidates[i];