mirror of
https://github.com/reality/dbot.git
synced 2024-12-26 12:42:51 +01:00
fix ban
This commit is contained in:
parent
e8f657de94
commit
ed24043a55
@ -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 }));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user