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