This commit is contained in:
reality 2013-07-02 10:39:55 +00:00
parent 362510c468
commit 227dbbd8e4

View File

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