Diff

core/storagemanager.lua @ 7994:3325ac397f17

storagemanager: Use the existing local reference to 'hosts'
author Kim Alvefur <zash@zash.se>
date Wed, 22 Mar 2017 10:38:36 +0100
parent 7947:24170d74b00b
child 7999:980606856882
line wrap: on
line diff
--- a/core/storagemanager.lua	Tue Mar 21 15:18:35 2017 +0100
+++ b/core/storagemanager.lua	Wed Mar 22 10:38:36 2017 +0100
@@ -164,7 +164,7 @@
 	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;