rss plugin: don't fail when feed.last_success is nil
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 18 Nov 2010 15:08:19 +0000 (16:08 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 18 Nov 2010 15:08:19 +0000 (16:08 +0100)
commitbd045414cfa2f2332ae766ae80c9e7c225bfa971
tree90ce0a30be6d9fee8c763fcf7cc1bf03cc661deb
parentb4e07b8fb4f1c79cc8c6a09fcb18bb3d4e25ea98
rss plugin: don't fail when feed.last_success is nil

The first_run check comparing the time delta from last success failed
when feed.last_success was nil. Prevent this from happening by checking
if we are on the first run before the rest of the checks.
data/rbot/plugins/rss.rb