Software /
code /
prosody
Comparison
plugins/mod_mam/mamprefs.lib.lua @ 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 |
parent | 7855:e429982940fc |
child | 7884:60d3b53a36f7 |
comparison
equal
deleted
inserted
replaced
7882:1017a4f8929d | 7883:9ff791c9f069 |
---|---|
20 ["romeo@montague.net"] = true, -- always | 20 ["romeo@montague.net"] = true, -- always |
21 ["montague@montague.net"] = false, -- newer | 21 ["montague@montague.net"] = false, -- newer |
22 }; | 22 }; |
23 end | 23 end |
24 | 24 |
25 local sessions = hosts[module.host].sessions; | 25 local sessions = prosody.hosts[module.host].sessions; |
26 local archive_store = module:get_option_string("archive_store", "archive"); | 26 local archive_store = module:get_option_string("archive_store", "archive"); |
27 local prefs = module:open_store(archive_store .. "_prefs"); | 27 local prefs = module:open_store(archive_store .. "_prefs"); |
28 | 28 |
29 local function get_prefs(user) | 29 local function get_prefs(user) |
30 local user_sessions = sessions[user]; | 30 local user_sessions = sessions[user]; |