3
0
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:
reality 2014-09-08 21:02:10 +00:00
parent 63ded5b197
commit a496526049

View File

@ -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)) {