3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-28 06:49:25 +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 { return {
'listener': function(data, params) { 'listener': function(data, params) {
var q = data.message.valMatch(/^\*\*?([\d\w\s]*)$/, 2); var q = data.message.valMatch(/^\*\*?([\d\w\s']*)$/, 2);
var otherQ = data.message.valMatch(/^([\d\w\s]*): \*\*?([\d\w\s]*)$/, 3); var otherQ = data.message.valMatch(/^([\d\w\s]*): \*\*?([\d\w\s']*)$/, 3);
if(q) { if(q) {
correct(data, q[1], data.user, function (e) { correct(data, q[1], data.user, function (e) {
dbot.say(data.channel, e.correcter + ' meant: ' + e.fix); dbot.say(data.channel, e.correcter + ' meant: ' + e.fix);