forked from GitHub/dbot
fix ignore behaviour with command/module clash
This commit is contained in:
parent
63ded5b197
commit
a496526049
@ -16,7 +16,7 @@ var ignore = function(dbot) {
|
||||
this.api.getUserIgnores(user, function(err, ignores) {
|
||||
var isImpeded = false;
|
||||
if(!err && ignores) {
|
||||
if(_.has(dbot.commands, item)) {
|
||||
if(_.has(dbot.commands, item) && !_.include(ignores[by], item)) {
|
||||
item = dbot.commands[item].module;
|
||||
}
|
||||
if(_.include(ignores[by], item)) {
|
||||
|
Loading…
Reference in New Issue
Block a user