summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/delicious.rb
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot/plugins/delicious.rb')
-rw-r--r--data/rbot/plugins/delicious.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/data/rbot/plugins/delicious.rb b/data/rbot/plugins/delicious.rb
index 8ed6d5b7..9244b9bc 100644
--- a/data/rbot/plugins/delicious.rb
+++ b/data/rbot/plugins/delicious.rb
@@ -69,6 +69,10 @@ class DeliciousPlugin < Plugin
if options[:channel]
opts[:tags] << ' ' + (@bot.config['delicious.channel_fmt'] % options[:channel])
end
+ if options[:ircline] and options[:ircline].match(/\[tag(?:s)?:([^\]]+)\]/)
+ tags = $1
+ opts[:tags] << ' ' + tags.tr(',', ' ')
+ end
debug "backgrounding del.icio.us api call"
Thread.new { diu_add(url, opts) }
end