From ed24043a5512e9108f566d7b2f59c75fd15c4748 Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 12 May 2016 07:38:18 +0000 Subject: [PATCH] fix 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 8b25814..1d9ebbd 100644 --- a/modules/ignore/ignore.js +++ b/modules/ignore/ignore.js @@ -114,7 +114,7 @@ var ignore = function(dbot) { item = event.input[2]; if(module == '*' || _.include(dbot.config.moduleNames, item) || _.include(dbot.commands, item)) { - dbot.api.users.resolveUser(event.server, nick, function(user) { + dbot.api.users.resolveUser(event.server, nick, function(err, user) { this.api.getUserIgnores(user, function(err, ignores) { if(!err) { if(!ignores) { @@ -144,7 +144,7 @@ var ignore = function(dbot) { } } }.bind(this)); - }); + }.bind(this)); } else { event.reply(dbot.t('invalid_ban', { 'user': event.user })); }