From 6fb82f2c8ae244cb098f2eae78a7d3143f3e2069 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 30 Jul 2008 21:03:05 +0200 Subject: rss plugin: don't claim to be using old data when we don't --- data/rbot/plugins/rss.rb | 7 +++---- 1 file 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 -- cgit v1.2.3