diff options
-rw-r--r-- | data/rbot/plugins/rss.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb index 7313f252..882a15fb 100644 --- a/data/rbot/plugins/rss.rb +++ b/data/rbot/plugins/rss.rb @@ -237,7 +237,7 @@ class RSSFeedsPlugin < Plugin def freshness_sort(items)
notime = Time.at(0)
items.sort { |a, b|
- itemDate(b, notime) <=> itemDate(a, notime)
+ itemDate(b, notime) || 0 <=> itemDate(a, notime) || 0
}
end
|