Diff

core/storagemanager.lua @ 3728:b1b8fe846d68

storagemanager: Hook "host-activated", to make sure we are notified about data drivers.
author Waqas Hussain <waqas20@gmail.com>
date Sun, 12 Dec 2010 05:14:35 +0500
parent 3727:1bbd655975ca
child 3734:ec59071e2a55
line wrap: on
line diff
--- 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