]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/delicious.rb
fortune plugin: add header
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / delicious.rb
index df42e765f34bdf1715026437a171dd7627b9962b..bf678303e89ab5d016c6fae8c38d79aee9eb58eb 100644 (file)
@@ -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