]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
autoop plugin: make it work again when no channel is specified
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 15 Feb 2007 12:58:34 +0000 (12:58 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 15 Feb 2007 12:58:34 +0000 (12:58 +0000)
data/rbot/plugins/autoop.rb

index a47375ca69d00e6ae5ccf096d07a4b1f961fdfa0..d1513a54281e25c04855f2825af2cf5d559a649e 100644 (file)
@@ -70,8 +70,5 @@ end
 plugin = AutoOP.new
 
 plugin.map 'autoop list', :action => 'list'
-plugin.map 'autoop add :mask *channels', :action => 'add'
-plugin.map 'autoop add :mask', :action => 'add'
-plugin.map 'autoop rm :mask *channels', :action => 'rm'
-plugin.map 'autoop rm :mask', :action => 'rm'
-
+plugin.map 'autoop add :mask [*channels]', :action => 'add'
+plugin.map 'autoop rm :mask [*channels]', :action => 'rm'