diff options
author | Kim Alvefur <zash@zash.se> | 2017-03-22 10:38:36 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-03-22 10:38:36 +0100 |
commit | 8933b2ac06f8b50d71fb997f0371a82a2b8b7362 (patch) | |
tree | bab22294f4d82626bb368408210a15d4bb17a145 /core/storagemanager.lua | |
parent | 51f14d52ffa314f1fdf38b37ab0d27cbcae1c0eb (diff) | |
download | prosody-8933b2ac06f8b50d71fb997f0371a82a2b8b7362.tar.gz prosody-8933b2ac06f8b50d71fb997f0371a82a2b8b7362.zip |
storagemanager: Use the existing local reference to 'hosts'
Diffstat (limited to 'core/storagemanager.lua')
-rw-r--r-- | core/storagemanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/storagemanager.lua b/core/storagemanager.lua index 75cb8d0f..c93438af 100644 --- a/core/storagemanager.lua +++ b/core/storagemanager.lua @@ -164,7 +164,7 @@ function open(host, store, typ) end if ret then local event_data = { host = host, store_name = store, store_type = typ, store = ret }; - prosody.hosts[host].events.fire_event("store-opened", event_data); + hosts[host].events.fire_event("store-opened", event_data); ret, err = event_data.store, event_data.store_err; end return ret, err; |