aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_mam/mamprefs.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-02-04 00:58:48 +0100
committerKim Alvefur <zash@zash.se>2017-02-04 00:58:48 +0100
commit310110c75d32ca27d60b97c9fa1dccc9099584ad (patch)
tree24cd50ad918363c7cfbed081508a2fd1a987fc73 /plugins/mod_mam/mamprefs.lib.lua
parent187cb3ac5eb01b962afd5dab47d45be7e7c9d45b (diff)
downloadprosody-310110c75d32ca27d60b97c9fa1dccc9099584ad.tar.gz
prosody-310110c75d32ca27d60b97c9fa1dccc9099584ad.zip
mod_mam/mamprefs: Use 'prosody.hosts' instead of '_G.hosts' in case we ever deprecate the later
Diffstat (limited to 'plugins/mod_mam/mamprefs.lib.lua')
-rw-r--r--plugins/mod_mam/mamprefs.lib.lua2
1 files changed, 1 insertions, 1 deletions
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");