aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-12-12 05:13:02 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-12-12 05:13:02 +0500
commit50ed262a8f77e46e473a6db27247c931724f40e6 (patch)
tree2eea37f1c7dbc1220f99ec8bb1c1224f08a0928b /core
parent4776abee1d5e0367840e4bd7ef2d8fbde86cdd01 (diff)
downloadprosody-50ed262a8f77e46e473a6db27247c931724f40e6.tar.gz
prosody-50ed262a8f77e46e473a6db27247c931724f40e6.zip
storagemanager: Fixed a nil global access.
Diffstat (limited to 'core')
-rw-r--r--core/storagemanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/storagemanager.lua b/core/storagemanager.lua
index 0857baf4..d3e3e807 100644
--- a/core/storagemanager.lua
+++ b/core/storagemanager.lua
@@ -25,6 +25,7 @@ function default_driver_mt:set(user, data) return olddm.store(user, self.host, s
local stores_available = multitable.new();
function initialize_host(host)
+ local host_session = hosts[host];
host_session.events.add_handler("item-added/data-driver", function (event)
local item = event.item;
stores_available:set(host, item.name, item);