]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
config core module: default command auth fixes
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 14 Feb 2008 15:36:43 +0000 (16:36 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 14 Feb 2008 15:36:43 +0000 (16:36 +0100)
lib/rbot/core/config.rb

index 9f5d76f02bd9e9110aab8f9a681d3de0c95b1a48..ad9b7c741a80e90ed86cd64baafb3a45ce3c211d 100644 (file)
@@ -265,10 +265,10 @@ conf.map 'config desc :key',
   :auth_path => 'show'\r
 conf.map 'config describe :key',\r
   :action => 'handle_desc',\r
-  :auth_path => 'show'\r
+  :auth_path => 'show::desc!'\r
 conf.map 'config search *rx',\r
   :action => 'handle_search',\r
-  :autho_path => 'show'\r
+  :auth_path => 'show'\r
 \r
 conf.map "save",\r
   :action => 'bot_save'\r
@@ -316,7 +316,8 @@ conf.map 'config help :topic',
   :auth_path => '!help!'\r
 \r
 conf.default_auth('*', false)\r
-conf.default_auth('show::status', true)\r
+conf.default_auth('show', true)\r
+conf.default_auth('show::get', false)\r
 # TODO these shouldn't be set here, we need a way to let the default\r
 # permission be specified together with the ConfigValue\r
 conf.default_auth('key', true)\r