3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-24 04:49:25 +01:00

ignore spelling if *word*

This commit is contained in:
Luke Slater 2011-11-17 22:06:56 +00:00
parent b253aa871c
commit b0d82acf77

View File

@ -4,7 +4,7 @@ var spelling = function(dbot) {
return {
'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);
if(q) {
var correction = q[1];