]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commit
rss plugin: don't abort if errors were found but rss is defined
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 6 Feb 2009 18:29:32 +0000 (19:29 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 6 Feb 2009 18:29:32 +0000 (19:29 +0100)
commitf6d60942c51ad3cb9fe2a54056a462064570abc3
tree31ef263bb41a0bf52fec99506e65e6d26339bd04
parent92b5425bba7e2a2321a2dc8341a86cdb60def580
rss plugin: don't abort if errors were found but rss is defined

If we always abort, a failing first parser will cause a failure even though a
subsequently tried parser succeeded in getting the feed right. So only
return nil if rss was nil when the error list wasn't empty.
data/rbot/plugins/rss.rb