summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2013-01-21 19:41:38 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2013-01-21 19:41:38 +0100
commit09f54bf35cdcdc278373521f6b4a3928ed81f744 (patch)
tree48022523bb26a628da5d41072c22fc28347c2f62 /data
parentf506b9a3752b20ad045a7c852113f133e0bf382e (diff)
rss: protect against nil field
This happens when the filter tries to wrap a non-existing field, and in custom filters it's probably a sign that the wrong field are being accessed. It would probably be nicer to raise a warning about this, but I'm too lazy to add that now.
Diffstat (limited to 'data')
-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 b2d367b0..f7e559f7 100644
--- a/data/rbot/plugins/rss.rb
+++ b/data/rbot/plugins/rss.rb
@@ -392,7 +392,7 @@ class RSSFeedsPlugin < Plugin
# do nothing
else
warning "ignoring #{v.inspect} wrapping of unknown class"
- end
+ end unless ss[nk].nil?
else
subs[k] = v
end