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
commitae6e05718a28782f2e1e20cac283d4ffbcc734dd (patch)
tree24cd50ad918363c7cfbed081508a2fd1a987fc73 /plugins/mod_mam/mamprefs.lib.lua
parentc71bad7426ec99e391d6694501f0c069382d370b (diff)
downloadprosody-ae6e05718a28782f2e1e20cac283d4ffbcc734dd.tar.gz
prosody-ae6e05718a28782f2e1e20cac283d4ffbcc734dd.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");