summaryrefslogtreecommitdiff
path: root/lib/rbot/config.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-29 09:49:58 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-29 09:49:58 +0000
commita3dc8d973b49d6a4bf1446093c194aed5f69916f (patch)
tree3553bcfb3d2667b93859ff978f58d466c445264c /lib/rbot/config.rb
parentb565bf81cbe456205b9f9fcf9e3960109c5b7de6 (diff)
Introduce BotConfigValue permissions, to protect particularly sensitive config options while still allowing access to more innocent ones
Diffstat (limited to 'lib/rbot/config.rb')
-rw-r--r--lib/rbot/config.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rbot/config.rb b/lib/rbot/config.rb
index e8cea284..ef079429 100644
--- a/lib/rbot/config.rb
+++ b/lib/rbot/config.rb
@@ -25,6 +25,7 @@ module Irc
attr_reader :requires_rescan
attr_reader :order
attr_reader :manager
+ attr_reader :auth_path
def initialize(key, params)
@manager = BotConfig::configmanager
# Keys must be in the form 'module.name'.
@@ -48,6 +49,7 @@ module Irc
@wizard = params[:wizard]
@requires_restart = params[:requires_restart]
@requires_rescan = params[:requires_rescan]
+ @auth_path = "config::key::#{key.sub('.','::')}"
end
def default
if @default.instance_of?(Proc)