3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-27 05:02:36 +01:00
This commit is contained in:
reality 2016-05-12 07:38:18 +00:00
parent e8f657de94
commit ed24043a55

View File

@ -114,7 +114,7 @@ var ignore = function(dbot) {
item = event.input[2]; item = event.input[2];
if(module == '*' || _.include(dbot.config.moduleNames, item) || _.include(dbot.commands, item)) { 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) { this.api.getUserIgnores(user, function(err, ignores) {
if(!err) { if(!err) {
if(!ignores) { if(!ignores) {
@ -144,7 +144,7 @@ var ignore = function(dbot) {
} }
} }
}.bind(this)); }.bind(this));
}); }.bind(this));
} else { } else {
event.reply(dbot.t('invalid_ban', { 'user': event.user })); event.reply(dbot.t('invalid_ban', { 'user': event.user }));
} }