summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-28 15:34:13 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-28 15:34:13 +0000
commit8f483cba538d982ca43096090b75a9185e90b552 (patch)
treeb2245a90ae675f7dde94fc5f6da01f9087177f35
parent83bfc1d808e63691b2f3081f903aa05684c379b6 (diff)
Topic plugin now defaults to very strict permissions
-rwxr-xr-xdata/rbot/plugins/topic.rb6
1 files changed, 5 insertions, 1 deletions
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)
+
+