3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 22:39:26 +01:00

apostrophes bitches

This commit is contained in:
Luke Slater 2012-01-20 16:26:47 +00:00
parent bfc3e4546b
commit 2fd09aa3f9

View File

@ -36,8 +36,8 @@ 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]*)$/, 3);
var q = data.message.valMatch(/^\*\*?([\d\w\s']*)$/, 2);
var otherQ = data.message.valMatch(/^([\d\w\s]*): \*\*?([\d\w\s']*)$/, 3);
if(q) {
correct(data, q[1], data.user, function (e) {
dbot.say(data.channel, e.correcter + ' meant: ' + e.fix);