diff options
author | Mark Kretschmann <markey@web.de> | 2006-08-11 07:50:05 +0000 |
---|---|---|
committer | Mark Kretschmann <markey@web.de> | 2006-08-11 07:50:05 +0000 |
commit | 1ff971768b7eb406607519a298fa030c25cd8e6b (patch) | |
tree | dd0e3092b5170b5f836f64038b6291a83e889215 /data/rbot | |
parent | 65c383b7e2ead0c39d0843fc81094e1fa5e96ded (diff) |
Adapt to new auth system.
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/script.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/data/rbot/plugins/script.rb b/data/rbot/plugins/script.rb index f744ed01..660c0952 100644 --- a/data/rbot/plugins/script.rb +++ b/data/rbot/plugins/script.rb @@ -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' |