]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Adapt to new auth system.
authorMark Kretschmann <markey@web.de>
Fri, 11 Aug 2006 07:50:05 +0000 (07:50 +0000)
committerMark Kretschmann <markey@web.de>
Fri, 11 Aug 2006 07:50:05 +0000 (07:50 +0000)
data/rbot/plugins/script.rb

index f744ed01a08af2fa9b4f91e04d5e3fe0465f9ad4..660c09521dc6ac5aa42e2b8905f7d6cfd59f68dc 100644 (file)
@@ -139,10 +139,11 @@ end
 
 plugin = ScriptPlugin.new
 plugin.register( "script" )
+plugin.default_auth( 'edit', false )
 
-plugin.map 'script add -f :name *code', :action => 'handle_add_force', :auth => 'scriptedit'
-plugin.map 'script add :name *code',    :action => 'handle_add',       :auth => 'scriptedit'
-plugin.map 'script del :name',          :action => 'handle_del',       :auth => 'scriptedit'
+plugin.map 'script add -f :name *code', :action => 'handle_add_force', :auth_path => 'edit!'
+plugin.map 'script add :name *code',    :action => 'handle_add',       :auth_path => 'edit!'
+plugin.map 'script del :name',          :action => 'handle_del',       :auth_path => 'edit!'
 plugin.map 'script list :page',         :action => 'handle_list',      :defaults => { :page => '1' }
 plugin.map 'script show :name',         :action => 'handle_show'