summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-14 17:04:35 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-14 17:04:35 +0200
commitda2edefc1b4ca6e8caf615d0a7dc4a14646f0785 (patch)
tree652dba689c2a19353c55143bcc5335a4632a509a
parent8f9e33c59a02f265b11b0c418fe58d5c7ddf21e5 (diff)
uno plugin: clean up game management permissions
-rw-r--r--data/rbot/plugins/games/uno.rb15
1 files changed, 7 insertions, 8 deletions
diff --git a/data/rbot/plugins/games/uno.rb b/data/rbot/plugins/games/uno.rb
index fef46b64..e8330457 100644
--- a/data/rbot/plugins/games/uno.rb
+++ b/data/rbot/plugins/games/uno.rb
@@ -1120,11 +1120,11 @@ end
pg = UnoPlugin.new
pg.map 'uno', :private => false, :action => :create_game
-pg.map 'uno end', :private => false, :action => :end_game
-pg.map 'uno drop', :private => false, :action => :drop_player
-pg.map 'uno giveup', :private => false, :action => :drop_player
-pg.map 'uno drop :nick', :private => false, :action => :drop_player, :auth_path => ':other'
-pg.map 'uno replace :old [with] :new', :private => false, :action => :replace_player
+pg.map 'uno end', :private => false, :action => :end_game, :auth_path => 'manage'
+pg.map 'uno drop', :private => false, :action => :drop_player, :auth_path => 'manage::drop::self!'
+pg.map 'uno giveup', :private => false, :action => :drop_player, :auth_path => 'manage::drop::self!'
+pg.map 'uno drop :nick', :private => false, :action => :drop_player, :auth_path => 'manage::drop::other!'
+pg.map 'uno replace :old [with] :new', :private => false, :action => :replace_player, :auth_path => 'manage'
pg.map 'uno stock', :private => false, :action => :print_stock
pg.map 'uno chanstats', :private => false, :action => :do_chanstats
pg.map 'uno stats [:nick]', :private => false, :action => :do_pstats
@@ -1132,6 +1132,5 @@ pg.map 'uno top :scorenum', :private => false, :action => :do_top, :defaults =>
pg.map 'uno topwin :winnum', :private => false, :action => :do_top, :defaults => { :winnum => 5 }
pg.default_auth('stock', false)
-pg.default_auth('end', false)
-pg.default_auth('drop::other', false)
-pg.default_auth('replace', false)
+pg.default_auth('manage', false)
+pg.default_auth('manage::drop::self', true)