summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authordmitry kim <jason@nichego.net>2008-07-18 15:51:52 +0400
committerdmitry kim <jason@nichego.net>2008-07-18 15:52:24 +0400
commited4791438c6c4ba2bea48f38316152fdf6afa764 (patch)
tree464fc19bed19a7ba8c9e0f10f27284d66bd5b66a /data
parent95b38d010521c5d6b781af4ecd60586a33f8e53f (diff)
* (plugins/rss) more item uid calculation fixes
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/rss.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb
index fea6f352..9d48108e 100644
--- a/data/rbot/plugins/rss.rb
+++ b/data/rbot/plugins/rss.rb
@@ -259,7 +259,8 @@ class RSSFeedsPlugin < Plugin
# only the guid/link is accounted for.
def block_rescue(df = nil, &block)
- block.call rescue nil
+ v = block.call rescue nil
+ (String === v && '' != v) ? v : nil
end
def make_uid(item)
@@ -280,6 +281,7 @@ class RSSFeedsPlugin < Plugin
block_rescue do item.title end
)
end
+ # debug "taking hash of #{uid.inspect}"
uid.hash
end