Software /
code /
prosody
Changeset
3850:39492ede0cf5
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 |
parents | 3849:34981acbd5d5 |
children | 3851:e979b5fe859d |
files | core/storagemanager.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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