summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-02-06 19:29:32 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-02-06 19:29:32 +0100
commitf6d60942c51ad3cb9fe2a54056a462064570abc3 (patch)
tree31ef263bb41a0bf52fec99506e65e6d26339bd04 /data/rbot
parent92b5425bba7e2a2321a2dc8341a86cdb60def580 (diff)
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.
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/rss.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/rss.rb b/data/rbot/plugins/rss.rb
index 57bd6113..885ae248 100644
--- a/data/rbot/plugins/rss.rb
+++ b/data/rbot/plugins/rss.rb
@@ -1172,7 +1172,7 @@ class RSSFeedsPlugin < Plugin
unless errors.empty?
debug errors
self.send(:report_problem, errors.last[2], errors.last[1], m)
- return nil
+ return nil unless rss
end
items = []
if rss.nil?