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
commit63f9a07c3686fd10b7dcf7b0aa1cf3b0ec3dc6f4 (patch)
tree5a69a409ae126f1e68f96332216bcd3a133a0cb8 /core
parent81b877341f41ef871279ead57aa81481f1135b84 (diff)
downloadprosody-63f9a07c3686fd10b7dcf7b0aa1cf3b0ec3dc6f4.tar.gz
prosody-63f9a07c3686fd10b7dcf7b0aa1cf3b0ec3dc6f4.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);