forked from GitHub/dbot
that should be channel.nicks
This commit is contained in:
parent
a238994e0f
commit
6b9c7d6cf0
@ -19,7 +19,7 @@ var api = function(dbot) {
|
|||||||
if(accessNeeded == 'voice') {
|
if(accessNeeded == 'voice') {
|
||||||
allowedNicks = _.union(allowedNicks, dbot.config.moderators);
|
allowedNicks = _.union(allowedNicks, dbot.config.moderators);
|
||||||
allowedNicks = _.union(allowedNicks, dbot.config.power_users);
|
allowedNicks = _.union(allowedNicks, dbot.config.power_users);
|
||||||
allowedNicks = _.union(allowedNicks, _.filter(channel, function(nick) {
|
allowedNicks = _.union(allowedNicks, _.filter(channel.nicks, function(nick) {
|
||||||
return nick.op == true || nick.voice == true;
|
return nick.op == true || nick.voice == true;
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user