From db8b6059fb10ea524725ccb4ffb7258143a89c52 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 25 Aug 2006 23:24:44 +0000 Subject: Optimize auth module exploiting new message mapping syntax --- lib/rbot/core/auth.rb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'lib/rbot') diff --git a/lib/rbot/core/auth.rb b/lib/rbot/core/auth.rb index 1fec6e4b..77b2e958 100644 --- a/lib/rbot/core/auth.rb +++ b/lib/rbot/core/auth.rb @@ -738,21 +738,16 @@ auth.map "user create :name :password", :defaults => {:password => nil}, :auth_path => ':manage:' -auth.map "user cancel destroy :name :password", +auth.map "user [cancel] destroy :name :password", :action => 'auth_destroy_user', :defaults => { :password => nil }, :auth_path => ':manage::destroy:' -auth.map "user destroy :name :password", - :action => 'auth_destroy_user', - :defaults => { :password => nil }, - :auth_path => ':manage:' - -auth.map "user copy :source :dest", +auth.map "user copy :source [to] :dest", :action => 'auth_copy_ren_user', :auth_path => ':manage:' -auth.map "user rename :source :dest", +auth.map "user rename :source [to] :dest", :action => 'auth_copy_ren_user', :auth_path => ':manage:' -- cgit v1.2.3