mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
fix ignore
This commit is contained in:
parent
0d2d00635c
commit
e22133d685
@ -116,7 +116,6 @@ var ignore = function(dbot) {
|
|||||||
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(err, 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(!ignores) {
|
if(!ignores) {
|
||||||
ignores = {
|
ignores = {
|
||||||
'id': user.id,
|
'id': user.id,
|
||||||
@ -142,9 +141,6 @@ var ignore = function(dbot) {
|
|||||||
'banned': nick
|
'banned': nick
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
event.reply(err);
|
|
||||||
}
|
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
} else {
|
} else {
|
||||||
@ -264,8 +260,8 @@ var ignore = function(dbot) {
|
|||||||
commands['~ignorechannel'].regex = [/^ignorechannel ([^ ]+) ([^ ]+)$/, 3];
|
commands['~ignorechannel'].regex = [/^ignorechannel ([^ ]+) ([^ ]+)$/, 3];
|
||||||
commands['~unignorechannel'].regex = [/^unignorechannel ([^ ]+) ([^ ]+)$/, 3];
|
commands['~unignorechannel'].regex = [/^unignorechannel ([^ ]+) ([^ ]+)$/, 3];
|
||||||
|
|
||||||
commands['~ban'].access = 'moderator';
|
commands['~ban'].access = 'power_user';
|
||||||
commands['~unban'].access = 'moderator';
|
commands['~unban'].access = 'power_user';
|
||||||
commands['~ignorechannel'].access = 'moderator';
|
commands['~ignorechannel'].access = 'moderator';
|
||||||
commands['~unignorechannel'].access = 'moderator';
|
commands['~unignorechannel'].access = 'moderator';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user