X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Ftopic.rb;h=9b6ffdb47e0b46af21875efff7f2bb4d55a028ec;hb=70351b15aadcce2e2f167952fbbaa96188916f26;hp=753d2bad2209e25b9c6351c48c6a1f1780bcb217;hpb=7aa8bc3cc941f2e05026a034406d34ce1f5e4b3c;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/topic.rb b/data/rbot/plugins/topic.rb index 753d2bad..9b6ffdb4 100755 --- a/data/rbot/plugins/topic.rb +++ b/data/rbot/plugins/topic.rb @@ -199,7 +199,7 @@ class TopicPlugin < Plugin k = channel.downcase if @registry.has_key?(k) && @registry[k].has_key?(:topic) topic = @registry[k][:topic] - topicset(m, channel, topicl + topicset(m, channel, topic) else m.reply "I don't remember any topic for this channel" end @@ -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)