3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-26 04:32:37 +01:00

Merge branch 'master' of github.com:reality/depressionbot

This commit is contained in:
reality 2013-01-23 13:40:45 +00:00
commit ff6a296aea

View File

@ -113,7 +113,7 @@ var spelling = function(dbot) {
this.listener = function(event) { this.listener = function(event) {
var q = event.message.valMatch(/^(?:\*\*?([\d\w\s']*)|([\d\w\s']*)\*\*?)$/, 3); 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) { if(q) {
this.internalAPI.correct(event, q[1] || q[2], event.user, function (e) { this.internalAPI.correct(event, q[1] || q[2], event.user, function (e) {
event.reply(dbot.t('spelling_self', e)); event.reply(dbot.t('spelling_self', e));