From: Giuseppe Bilotta Date: Fri, 25 Aug 2006 23:24:44 +0000 (+0000) Subject: Optimize auth module exploiting new message mapping syntax X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=db8b6059fb10ea524725ccb4ffb7258143a89c52;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git Optimize auth module exploiting new message mapping syntax --- 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:'