This commit is contained in:
Luke Slater 2011-10-31 17:13:41 +00:00
parent 130363c991
commit a4a8471ab5

View File

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