ignore spelling if *word*

This commit is contained in:
Luke Slater 2011-11-17 22:12:32 +00:00
parent b0d82acf77
commit 23e4e5d7c0

View File

@ -4,8 +4,8 @@ var spelling = function(dbot) {
return {
'listener': function(data, params) {
var q = data.message.valMatch(/^\*\*?([\d\w\s]*)[^*]/, 2);
var otherQ = data.message.valMatch(/^([\d\w\s]*): \*\*?([\d\w\s]*)/, 3);
var q = data.message.valMatch(/^\*\*?([\d\w\s]*)$/, 2);
var otherQ = data.message.valMatch(/^([\d\w\s]*): \*\*?([\d\w\s]*)$/, 3);
if(q) {
var correction = q[1];
var candidates = last[data.channel][data.user].split(' ');