3
0
mirror of https://github.com/reality/dbot.git synced 2025-05-02 22:37:25 +02:00

Stop command execution syntax running if line is not a command. Note [#337] was fixed a few commits ago too.

This commit is contained in:
reality 2013-04-12 17:42:11 +00:00
parent 58b58aa15f
commit 38c18366a3

View File

@ -13,6 +13,9 @@ var command = function(dbot) {
*/ */
this.listener = function(event) { this.listener = function(event) {
var commandName = event.params[0]; var commandName = event.params[0];
if(commandName.charAt(0) != '~') {
return;
}
if(!_.has(dbot.commands, commandName)) { if(!_.has(dbot.commands, commandName)) {
if(_.has(dbot.modules, 'quotes')) { if(_.has(dbot.modules, 'quotes')) {
commandName = '~'; commandName = '~';