From 1756ae84ef06b833b0b787a3ffa0bbd4dcdee2f1 Mon Sep 17 00:00:00 2001 From: amki Date: Sat, 4 Apr 2015 00:28:36 +0200 Subject: [PATCH] Fixed 2 crashes when rss database was empty --- modules/rss/rss.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/rss/rss.js b/modules/rss/rss.js index ced2c4b..7a4cb5e 100644 --- a/modules/rss/rss.js +++ b/modules/rss/rss.js @@ -93,6 +93,10 @@ var rss = function(dbot) { 'checkFeeds': function() { console.log("Checking feeds..."); + if(dbot.db.feeds == null) { + console.log("No active feeds..."); + return; + } for(var i=0;i