From 8f483cba538d982ca43096090b75a9185e90b552 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 28 Aug 2006 15:34:13 +0000 Subject: Topic plugin now defaults to very strict permissions --- data/rbot/plugins/topic.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'data/rbot') diff --git a/data/rbot/plugins/topic.rb b/data/rbot/plugins/topic.rb index 7f5d528a..e57c0e81 100755 --- a/data/rbot/plugins/topic.rb +++ b/data/rbot/plugins/topic.rb @@ -51,7 +51,7 @@ class TopicPlugin < Plugin end end cmd = param[:command] - txt = param[:text].join(" ") + txt = param[:text].to_s case cmd when /^a(dd|ppend)$/ @@ -208,6 +208,10 @@ 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.default_auth('*', false) + + -- cgit v1.2.3