mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
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