summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorDmitry Kim <dmitry point kim at gmail point com>2007-08-29 21:07:06 +0000
committerDmitry Kim <dmitry point kim at gmail point com>2007-08-29 21:07:06 +0000
commit22e1e07596efdb96e58332d5a0861d68a11ccb09 (patch)
tree6cee8b1ab7c8b84900d2c30311a5a1e4c80a3535 /data/rbot
parent2a8e0061aa290f8a3caf90cdcc14c5b661968a36 (diff)
+ (delicios.rb) support user-supplied tags for del.icio.us logging
Diffstat (limited to 'data/rbot')
-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