forked from GitHub/dbot
Get mogglington his pony maybe [#193]
This commit is contained in:
parent
27e79641d5
commit
b0752f779b
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user