From 310110c75d32ca27d60b97c9fa1dccc9099584ad Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 4 Feb 2017 00:58:48 +0100 Subject: mod_mam/mamprefs: Use 'prosody.hosts' instead of '_G.hosts' in case we ever deprecate the later --- plugins/mod_mam/mamprefs.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_mam') diff --git a/plugins/mod_mam/mamprefs.lib.lua b/plugins/mod_mam/mamprefs.lib.lua index 054b6861..09efc006 100644 --- a/plugins/mod_mam/mamprefs.lib.lua +++ b/plugins/mod_mam/mamprefs.lib.lua @@ -22,7 +22,7 @@ do }; 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"); -- cgit v1.2.3