Changeset

7883:9ff791c9f069

mod_mam/mamprefs: Use 'prosody.hosts' instead of '_G.hosts' in case we ever deprecate the later
author Kim Alvefur <zash@zash.se>
date Sat, 04 Feb 2017 00:58:48 +0100
parents 7882:1017a4f8929d
children 7884:60d3b53a36f7
files plugins/mod_mam/mamprefs.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_mam/mamprefs.lib.lua	Sat Feb 04 00:57:34 2017 +0100
+++ b/plugins/mod_mam/mamprefs.lib.lua	Sat Feb 04 00:58:48 2017 +0100
@@ -22,7 +22,7 @@
 	};
 end
 
-local sessions = hosts[module.host].sessions;
+local sessions = prosody.hosts[module.host].sessions;
 local archive_store = module:get_option_string("archive_store", "archive");
 local prefs = module:open_store(archive_store .. "_prefs");