Software /
code /
prosody
Changeset
3403:b89680015b7b
storagemanager: Fixed a nil access.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 26 Jul 2010 00:58:19 +0500 |
parents | 3402:dfc369314e53 |
children | 3404:33c81ee280e3 |
files | core/storagemanager.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core/storagemanager.lua Fri Jul 23 23:14:50 2010 +0500 +++ b/core/storagemanager.lua Mon Jul 26 00:58:19 2010 +0500 @@ -20,7 +20,7 @@ local default_driver_mt = {}; default_driver_mt.__index = default_driver_mt; function default_driver_mt:open(store) - return setmetatable({ host = self.host, store = self.store }, default_driver_mt); + return setmetatable({ host = self.host, store = store }, default_driver_mt); end function default_driver_mt:get(user) return olddm.load(user, self.host, self.store); end function default_driver_mt:set(user, data) return olddm.store(user, self.host, self.store, data); end