From 877d666a19abcc28bde6838e5d9ba30558724f07 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Sun, 27 Nov 2011 13:27:34 +0000 Subject: [PATCH] fixed the idiot half-changed spelling bit --- modules/spelling.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/spelling.js b/modules/spelling.js index 2e98a02..b8b2a3a 100644 --- a/modules/spelling.js +++ b/modules/spelling.js @@ -4,8 +4,8 @@ var spelling = function(dbot) { return { 'listener': function(data, params) { - var q = data.message.valMatch(/^\([\d\w\s]*: )?*\*?([\d\w\s]*)$/, 2); - var otherQ = data.message.valMatch(/^ \*\*?([\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(' ');