aboutsummaryrefslogtreecommitdiffstats
path: root/core/storagemanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-12-12 05:14:35 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-12-12 05:14:35 +0500
commit980df08b94f8ba0b3cb744b3ce4287c7be303a06 (patch)
tree4d537c9934e279dda8164d93d5b2bd9718426e9c /core/storagemanager.lua
parent50ed262a8f77e46e473a6db27247c931724f40e6 (diff)
downloadprosody-980df08b94f8ba0b3cb744b3ce4287c7be303a06.tar.gz
prosody-980df08b94f8ba0b3cb744b3ce4287c7be303a06.zip
storagemanager: Hook "host-activated", to make sure we are notified about data drivers.
Diffstat (limited to 'core/storagemanager.lua')
-rw-r--r--core/storagemanager.lua2
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