# HG changeset patch # User Kim Alvefur # Date 1486166328 -3600 # Node ID 9ff791c9f069164fd49efee77886cc0fff4f4132 # Parent 1017a4f8929db615c8a26e14182c34aa701ae0ad mod_mam/mamprefs: Use 'prosody.hosts' instead of '_G.hosts' in case we ever deprecate the later diff -r 1017a4f8929d -r 9ff791c9f069 plugins/mod_mam/mamprefs.lib.lua --- 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");