Sun, 12 Dec 2010 05:14:35 +0500
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