From 35710b5c7888558ce306652e2d6f7f64526532c3 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 8 Apr 2007 23:11:54 +0000 Subject: rss plugin: parse feed on first run, even if we don't check for new items --- data/rbot/plugins/rss.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3