From 23653665c2a22d9e62025809b2cf9e792ab0388d Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Fri, 4 Nov 2011 16:37:21 +0000 Subject: [PATCH] valmatch correction --- modules/spelling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/spelling.js b/modules/spelling.js index b564b2f..b376893 100644 --- a/modules/spelling.js +++ b/modules/spelling.js @@ -5,7 +5,7 @@ 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]*)/); + 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(' ');