# HG changeset patch # User Waqas Hussain # Date 1292112875 -18000 # Node ID b1b8fe846d682caa74e293b0edc99283724b2e9f # Parent 1bbd655975ca5bdfcd7788502bcf527d95886617 storagemanager: Hook "host-activated", to make sure we are notified about data drivers. diff -r 1bbd655975ca -r b1b8fe846d68 core/storagemanager.lua --- 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