forked from GitHub/dbot
var not int jesus christ java
This commit is contained in:
parent
d57b2e2092
commit
254f89f710
@ -22,7 +22,7 @@ var spelling = function(dbot) {
|
|||||||
console.log(winner + ' ' + winnerDistance);
|
console.log(winner + ' ' + winnerDistance);
|
||||||
|
|
||||||
if(winnerDistance < 3) {
|
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);
|
dbot.say(data.channel, data.user + ':' + fix);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user