storagemanager: Hook "host-activated", to make sure we are notified about data drivers.

Sun, 12 Dec 2010 05:14:35 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Sun, 12 Dec 2010 05:14:35 +0500
changeset 3850
39492ede0cf5
parent 3849
34981acbd5d5
child 3851
e979b5fe859d

storagemanager: Hook "host-activated", to make sure we are notified about data drivers.

core/storagemanager.lua file | annotate | diff | comparison | revisions
--- a/core/storagemanager.lua	Sun Dec 12 05:13:02 2010 +0500
+++ b/core/storagemanager.lua	Sun Dec 12 05:14:35 2010 +0500
@@ -11,6 +11,7 @@
 
 local olddm = {}; -- maintain old datamanager, for backwards compatibility
 for k,v in pairs(datamanager) do olddm[k] = v; end
+local prosody = prosody;
 
 module("storagemanager")
 
@@ -36,6 +37,7 @@
 		stores_available:set(host, item.name, nil);
 	end);
 end
+prosody.events.add_handler("host-activated", initialize_host, 101);
 
 local function load_driver(host, driver_name)
 	if not driver_name then

mercurial