summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/rbot/plugins/delicious.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/delicious.rb b/data/rbot/plugins/delicious.rb
index df42e765..bf678303 100644
--- a/data/rbot/plugins/delicious.rb
+++ b/data/rbot/plugins/delicious.rb
@@ -46,7 +46,7 @@ class DeliciousPlugin < Plugin
end
def diu_add(url, opts = {})
- old = diu_req('get', :url => url).root.get_elements('/posts/post')[0] rescue ni
+ old = diu_req('get', :url => url).root.get_elements('/posts/post')[0] rescue nil
opts[:tags] ||= ''
if old
opts[:description] ||= old.attribute('description').to_s