mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
Don't error if regex syntax is invalid for ~ default.
This commit is contained in:
parent
55dec12324
commit
aa72af3867
@ -69,10 +69,12 @@ var command = function(dbot) {
|
|||||||
dbot.commands[commandName](event);
|
dbot.commands[commandName](event);
|
||||||
dbot.save();
|
dbot.save();
|
||||||
} else {
|
} else {
|
||||||
|
if(commandName !== '~') {
|
||||||
event.reply(dbot.t('syntax_error'));
|
event.reply(dbot.t('syntax_error'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
'on': 'PRIVMSG',
|
'on': 'PRIVMSG',
|
||||||
|
Loading…
Reference in New Issue
Block a user