mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
command can stand being run without quotes!
This commit is contained in:
parent
5419a664dc
commit
0ff2a43c07
@ -16,7 +16,11 @@ var command = function(dbot) {
|
|||||||
this.listener = function(event) {
|
this.listener = function(event) {
|
||||||
var commandName = event.params[0];
|
var commandName = event.params[0];
|
||||||
if(!_.has(dbot.commands, commandName)) {
|
if(!_.has(dbot.commands, commandName)) {
|
||||||
commandName = '~';
|
if(_.has(dbot.modules, 'quotes')) {
|
||||||
|
commandName = '~';
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.api.isBanned(event.user, commandName)) {
|
if(this.api.isBanned(event.user, commandName)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user