3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00
This commit is contained in:
Luke Slater 2011-10-31 17:11:40 +00:00
parent fd9366e4f9
commit 130363c991

View File

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