mirror of
https://github.com/reality/dbot.git
synced 2024-11-30 16:09:27 +01:00
valmatch correction
This commit is contained in:
parent
119d0b306e
commit
23653665c2
@ -5,7 +5,7 @@ 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]*)/);
|
||||
var otherQ = data.message.valMatch(/^([\d\w\s]*): \*\*?([\d\w\s]*)/, 3);
|
||||
if(q) {
|
||||
var correction = q[1];
|
||||
var candidates = last[data.channel][data.user].split(' ');
|
||||
|
Loading…
Reference in New Issue
Block a user