forked from GitHub/dbot
whoops..
This commit is contained in:
parent
362510c468
commit
227dbbd8e4
@ -20,7 +20,7 @@ var api = function(dbot) {
|
||||
'hasAccess': function(server, user, command, callback) {
|
||||
var accessNeeded = dbot.commands[command].access;
|
||||
|
||||
if(accessNeeded == 'admin' || accessNeeded == 'moderator') {
|
||||
if(accessNeeded == 'admin' || accessNeeded == 'moderator' || accessNeeded == 'power_user') {
|
||||
var allowedNicks = dbot.config.admins;
|
||||
if(accessNeeded == 'moderator') allowedNicks = _.union(allowedNicks, dbot.config.moderators);
|
||||
if(accessNeeded == 'power_user') allowedNicks = _.union(allowedNicks, dbot.config.power_users);
|
||||
|
Loading…
Reference in New Issue
Block a user