diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-08-28 15:34:13 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-08-28 15:34:13 +0000 |
commit | 8f483cba538d982ca43096090b75a9185e90b552 (patch) | |
tree | b2245a90ae675f7dde94fc5f6da01f9087177f35 /data/rbot | |
parent | 83bfc1d808e63691b2f3081f903aa05684c379b6 (diff) |
Topic plugin now defaults to very strict permissions
Diffstat (limited to 'data/rbot')
-rwxr-xr-x | data/rbot/plugins/topic.rb | 6 |
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) + + |