summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-25 23:24:44 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-25 23:24:44 +0000
commitdb8b6059fb10ea524725ccb4ffb7258143a89c52 (patch)
treee9c5539b7733ad6a6fc5171fbb219b26161513f3
parentf8a60326b46c90101743e8d412cfbe5a76d13c2f (diff)
Optimize auth module exploiting new message mapping syntax
-rw-r--r--lib/rbot/core/auth.rb11
1 files changed, 3 insertions, 8 deletions
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:'