summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-07-30 21:03:05 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-07-30 21:12:53 +0200
commit6fb82f2c8ae244cb098f2eae78a7d3143f3e2069 (patch)
tree438aa2315312ef40f4db75e0ba9cffd6dc131be7 /data
parentc31697b2d75aa46df9163ebce92ee68fd0f9ce7f (diff)
rss plugin: don't claim to be using old data when we don't
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/rss.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb
index a1bec30f..7407655e 100644
--- a/data/rbot/plugins/rss.rb
+++ b/data/rbot/plugins/rss.rb
@@ -591,13 +591,12 @@ class RSSFeedsPlugin < Plugin
fetched = fetchRss(feed, m, false)
end
return unless fetched or feed.xml
- if not fetched and feed.items
- m.reply "using old data"
- else
+ if fetched or not feed.items
parsed = parseRss(feed, m)
- m.reply "using old data" unless parsed
end
return unless feed.items
+ m.reply "using old data" unless fetched and parsed
+
title = feed.title
items = feed.items