From 09f54bf35cdcdc278373521f6b4a3928ed81f744 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 21 Jan 2013 19:41:38 +0100 Subject: [PATCH] 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. --- data/rbot/plugins/rss.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.32.0.93.g670b81a890