From 2ecf2f58c843895ce4ad143d0a05283c4b7e37e8 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 14 Feb 2008 16:36:43 +0100 Subject: [PATCH] config core module: default command auth fixes --- lib/rbot/core/config.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/rbot/core/config.rb b/lib/rbot/core/config.rb index 9f5d76f0..ad9b7c74 100644 --- a/lib/rbot/core/config.rb +++ b/lib/rbot/core/config.rb @@ -265,10 +265,10 @@ conf.map 'config desc :key', :auth_path => 'show' conf.map 'config describe :key', :action => 'handle_desc', - :auth_path => 'show' + :auth_path => 'show::desc!' conf.map 'config search *rx', :action => 'handle_search', - :autho_path => 'show' + :auth_path => 'show' conf.map "save", :action => 'bot_save' @@ -316,7 +316,8 @@ conf.map 'config help :topic', :auth_path => '!help!' conf.default_auth('*', false) -conf.default_auth('show::status', true) +conf.default_auth('show', true) +conf.default_auth('show::get', false) # TODO these shouldn't be set here, we need a way to let the default # permission be specified together with the ConfigValue conf.default_auth('key', true) -- 2.39.5