From d37326c88e8e7c88dfbe041aaaf4f9157e417f2d Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 18 Jul 2017 14:28:42 +0000 Subject: [PATCH] fix all ban --- modules/ignore/ignore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ignore/ignore.js b/modules/ignore/ignore.js index 52bf6a2..d3e9351 100644 --- a/modules/ignore/ignore.js +++ b/modules/ignore/ignore.js @@ -19,7 +19,7 @@ var ignore = function(dbot) { if(_.has(dbot.commands, item) && !_.include(ignores[by], item)) { item = dbot.commands[item].module; } - if(_.include(ignores[by], item)) { + if(_.include(ignores[by], item) || _.include(ignores[by], '*')) { isImpeded = true; } } @@ -113,7 +113,7 @@ var ignore = function(dbot) { var nick = event.input[1], item = event.input[2]; - if(module == '*' || _.include(dbot.config.moduleNames, item) || _.include(dbot.commands, item)) { + if(item == '*' || _.include(dbot.config.moduleNames, item) || _.include(dbot.commands, item)) { dbot.api.users.resolveUser(event.server, nick, function(err, user) { this.api.getUserIgnores(user, function(err, ignores) { if(!ignores) {