summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-08 23:11:54 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-04-08 23:11:54 +0000
commit35710b5c7888558ce306652e2d6f7f64526532c3 (patch)
tree2f65e9795ac08dd1d1f329c3b0b57a1584efde05
parent759bedc3e1bd0bda4ae95c879c001949fb2b5760 (diff)
rss plugin: parse feed on first run, even if we don't check for new items
-rw-r--r--data/rbot/plugins/rss.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb
index 885ac84d..fbe1c12f 100644
--- a/data/rbot/plugins/rss.rb
+++ b/data/rbot/plugins/rss.rb
@@ -668,7 +668,10 @@ class RSSFeedsPlugin < Plugin
unless fetchRss(feed)
failures += 1
else
- if first_run or (oldxml and oldxml == feed.xml)
+ if first_run
+ debug "first run for #{feed}, getting items"
+ parseRss(feed)
+ elsif oldxml and oldxml == feed.xml
debug "xml for #{feed} didn't change"
failures -= 1 if failures > 0
else