def event_url_added(url, options = {})
debug("called with #{url}, #{options.inspect}")
+ if @bot.config['delicious.user'].empty?
+ debug "del.icio.us plugin not configured, skipping"
+ return
+ end
opts = Hash.new
opts[:description] = options[:title] || options[:info] || url
opts[:extended] = options[:extra] if options[:extra]
tags.tr(',', ' ').split(/\s+/).each do |t|
if t.sub!(/^!/, '')
case t
- when 'nolog', 'no-log', 'dont-log', 'dontlog', 'skip':
+ when 'nolog', 'no-log', 'dont-log', 'dontlog', 'skip'
debug "skipping #{url} on user request"
return
- when 'private', 'unshared', 'not-shared', 'notshared', 'hide':
+ when 'private', 'unshared', 'not-shared', 'notshared', 'hide'
debug "hiding #{url} on user request"
opts[:shared] = 'no'
end