--- a/mod_pubsub_feeds/mod_pubsub_feeds.lua Wed Aug 15 16:34:59 2012 +0200
+++ b/mod_pubsub_feeds/mod_pubsub_feeds.lua Wed Aug 15 16:47:06 2012 +0200
@@ -41,8 +41,7 @@
local feed_list = module:shared("feed_list");
local refresh_interval;
--- Dynamically reloadable config.
-local function update_config()
+function module.load()
local config = module:get_option("feeds") or {
planet_jabber = "http://planet.jabber.org/atom.xml";
prosody_blog = "http://blog.prosody.im/feed/atom.xml";
@@ -66,8 +65,6 @@
end
end
end
-update_config();
-module:hook_global("config-reloaded", update_config);
function update_entry(item)
local node = item.node;