changeset 794:5a8fa70faa13

mod_pubsub_feeds: Remove config-reloaded hook, do setup in module.load() instead
author Kim Alvefur <zash@zash.se>
date Wed, 15 Aug 2012 16:47:06 +0200 (2012-08-15)
parents 9fd30261b0e1
children c7f507a190a0
files mod_pubsub_feeds/mod_pubsub_feeds.lua
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;