From: Giuseppe Bilotta Date: Wed, 6 Sep 2006 19:50:22 +0000 (+0000) Subject: No-parameter commands in the topic plugin weren't recognized anymore. Fix it X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=70351b15aadcce2e2f167952fbbaa96188916f26;hp=9c5bfe75338fac268d5baf476729017c5b132c08;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git No-parameter commands in the topic plugin weren't recognized anymore. Fix it --- diff --git a/data/rbot/plugins/topic.rb b/data/rbot/plugins/topic.rb index 45e77066..9b6ffdb4 100755 --- a/data/rbot/plugins/topic.rb +++ b/data/rbot/plugins/topic.rb @@ -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)