mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +01:00
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