forked from GitHub/dbot
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:
parent
58b58aa15f
commit
38c18366a3
@ -13,6 +13,9 @@ var command = function(dbot) {
|
||||
*/
|
||||
this.listener = function(event) {
|
||||
var commandName = event.params[0];
|
||||
if(commandName.charAt(0) != '~') {
|
||||
return;
|
||||
}
|
||||
if(!_.has(dbot.commands, commandName)) {
|
||||
if(_.has(dbot.modules, 'quotes')) {
|
||||
commandName = '~';
|
||||
|
Loading…
Reference in New Issue
Block a user