mirror of
https://github.com/reality/dbot.git
synced 2024-12-25 04:02:39 +01:00
fixed the idiot half-changed spelling bit
This commit is contained in:
parent
877d666a19
commit
344ae848a4
@ -4,8 +4,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) {
|
||||
var correction = q[1];
|
||||
var candidates = last[data.channel][data.user].split(' ');
|
||||
|
Loading…
Reference in New Issue
Block a user