]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
No-parameter commands in the topic plugin weren't recognized anymore. Fix it
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 6 Sep 2006 19:50:22 +0000 (19:50 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 6 Sep 2006 19:50:22 +0000 (19:50 +0000)
data/rbot/plugins/topic.rb

index 45e770669049746a23fb3da8b6aa2fcadd3d4ffa..9b6ffdb47e0b46af21875efff7f2bb4d55a028ec 100755 (executable)
@@ -213,8 +213,8 @@ class TopicPlugin < Plugin
 end
 plugin = TopicPlugin.new
 
-plugin.map 'topic :command *text', :action => 'handletopic', :public => true, :private => false
-plugin.map 'topic :channel :command *text', :action => 'handletopic', :public => false, :private => true
+plugin.map 'topic :command [*text]', :action => 'handletopic', :public => true, :private => false
+plugin.map 'topic :channel :command [*text]', :action => 'handletopic', :public => false, :private => true
 
 plugin.default_auth('*', false)