3
0
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:
reality 2013-09-07 18:03:59 +00:00
parent a238994e0f
commit 6b9c7d6cf0

View File

@ -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;
}));
}