From b0752f779b42b18822eccd6321bafe7c96de3f78 Mon Sep 17 00:00:00 2001 From: Luke Slater Date: Wed, 23 Jan 2013 10:36:46 +0100 Subject: [PATCH] Get mogglington his pony maybe [#193] --- modules/spelling/spelling.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/spelling/spelling.js b/modules/spelling/spelling.js index 7803c42..5078e29 100644 --- a/modules/spelling/spelling.js +++ b/modules/spelling/spelling.js @@ -113,7 +113,7 @@ var spelling = function(dbot) { this.listener = function(event) { var q = event.message.valMatch(/^(?:\*\*?([\d\w\s']*)|([\d\w\s']*)\*\*?)$/, 3); - var otherQ = event.message.valMatch(/^([\d\w\s]*): (?:\*\*?([\d\w\s']*)|([\d\w\s']*)\*\*?)$/, 4); + var otherQ = event.message.valMatch(/^([\d\w\s]*)[:|,] (?:\*\*?([\d\w\s']*)|([\d\w\s']*)\*\*?)$/, 4); if(q) { this.internalAPI.correct(event, q[1] || q[2], event.user, function (e) { event.reply(dbot.t('spelling_self', e));