From 63f9a07c3686fd10b7dcf7b0aa1cf3b0ec3dc6f4 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 12 Dec 2010 05:13:02 +0500 Subject: storagemanager: Fixed a nil global access. --- core/storagemanager.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'core') 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); -- cgit v1.2.3