Software /
code /
prosody-modules
Changeset
797:68a067d5ed3b
mod_pubsub_feeds: util.pubsub methods return bool, data
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 15 Aug 2012 17:29:18 +0200 |
parents | 796:9e1dab7310c0 |
children | 798:2b8ceb4d1a73 |
files | mod_pubsub_feeds/mod_pubsub_feeds.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_pubsub_feeds/mod_pubsub_feeds.lua Wed Aug 15 17:25:47 2012 +0200 +++ b/mod_pubsub_feeds/mod_pubsub_feeds.lua Wed Aug 15 17:29:18 2012 +0200 @@ -47,7 +47,8 @@ prosody_blog = "http://blog.prosody.im/feed/atom.xml"; }; refresh_interval = module:get_option_number("feed_pull_interval", 15) * 60; - local nodes = pubsub.service:get_nodes(true); + local ok, nodes = pubsub.service:get_nodes(true); + if not ok then nodes = {}; end local new_feed_list = {}; for node, url in pairs(config) do if type(node) == "number" then