From 5a67f85ce19613963e634c719546c8270c6f1552 Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 1 Jul 2013 17:59:54 +0000 Subject: [PATCH] power_users [#521] --- config.json.sample | 1 + modules/command/api.js | 1 + 2 files changed, 2 insertions(+) diff --git a/config.json.sample b/config.json.sample index 043afd6..87190a7 100644 --- a/config.json.sample +++ b/config.json.sample @@ -14,6 +14,7 @@ }, "admins": [ "batman" ], "moderators": [ "whatever" ], + "power_users": [], "moduleNames": [ "ignore", "admin", "command", "dice", "js", "kick", "quotes", "spelling", "youare", "timers", "stats", "users", "link" ], "language": "en", "debugMode": false, diff --git a/modules/command/api.js b/modules/command/api.js index 5fb8aa4..b071f55 100644 --- a/modules/command/api.js +++ b/modules/command/api.js @@ -23,6 +23,7 @@ var api = function(dbot) { if(accessNeeded == 'admin' || accessNeeded == 'moderator') { 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); if(!_.include(allowedNicks, user)) { callback(false);