mirror of
https://github.com/reality/dbot.git
synced 2024-12-28 05:32:50 +01:00
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') {
|
||||
allowedNicks = _.union(allowedNicks, dbot.config.moderators);
|
||||
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;
|
||||
}));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user