]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
rss plugin: don't claim to be using old data when we don't
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 30 Jul 2008 19:03:05 +0000 (21:03 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 30 Jul 2008 19:12:53 +0000 (21:12 +0200)
data/rbot/plugins/rss.rb

index a1bec30fb85eceebedc2baffe47d8e1e1ddadebf..7407655e23639de4e0d7d5b16c8e3c973fae228c 100644 (file)
@@ -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