From a49652604974cd54cd3db5206f41d8b47d53ff4a Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 8 Sep 2014 21:02:10 +0000 Subject: [PATCH] fix ignore behaviour with command/module clash --- modules/ignore/ignore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ignore/ignore.js b/modules/ignore/ignore.js index 46c43f9..7646ad5 100644 --- a/modules/ignore/ignore.js +++ b/modules/ignore/ignore.js @@ -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)) {