diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-12-12 05:14:35 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-12-12 05:14:35 +0500 |
commit | 56c8c3865f1fc9a22a0e28b6e9ed7d13b54141e6 (patch) | |
tree | d948279aafa12b222f34cd1a5ea3d879ffdfccfe | |
parent | 63f9a07c3686fd10b7dcf7b0aa1cf3b0ec3dc6f4 (diff) | |
download | prosody-56c8c3865f1fc9a22a0e28b6e9ed7d13b54141e6.tar.gz prosody-56c8c3865f1fc9a22a0e28b6e9ed7d13b54141e6.zip |
storagemanager: Hook "host-activated", to make sure we are notified about data drivers.
-rw-r--r-- | core/storagemanager.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/storagemanager.lua b/core/storagemanager.lua index d3e3e807..db540042 100644 --- a/core/storagemanager.lua +++ b/core/storagemanager.lua @@ -11,6 +11,7 @@ local log = require "util.logger".init("storagemanager"); 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 @@ function initialize_host(host) 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 |