mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +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) {
|
this.api.getUserIgnores(user, function(err, ignores) {
|
||||||
var isImpeded = false;
|
var isImpeded = false;
|
||||||
if(!err && ignores) {
|
if(!err && ignores) {
|
||||||
if(_.has(dbot.commands, item)) {
|
if(_.has(dbot.commands, item) && !_.include(ignores[by], item)) {
|
||||||
item = dbot.commands[item].module;
|
item = dbot.commands[item].module;
|
||||||
}
|
}
|
||||||
if(_.include(ignores[by], item)) {
|
if(_.include(ignores[by], item)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user