Software /
code /
prosody-modules
Comparison
mod_mam/mamprefs.lib.lua @ 1153:572b1ad46182
mod_mam/mamprefs.lib: Revert accidentally commited change
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 11 Aug 2013 23:53:48 +0200 |
parent | 1137:431627b07b9f |
child | 2017:d44ac0756c46 |
comparison
equal
deleted
inserted
replaced
1152:01fa82074b62 | 1153:572b1ad46182 |
---|---|
23 local user_prefs = user_sessions and user_sessions.archive_prefs | 23 local user_prefs = user_sessions and user_sessions.archive_prefs |
24 if not user_prefs and user_sessions then | 24 if not user_prefs and user_sessions then |
25 user_prefs = prefs:get(user); | 25 user_prefs = prefs:get(user); |
26 user_sessions.archive_prefs = user_prefs; | 26 user_sessions.archive_prefs = user_prefs; |
27 end | 27 end |
28 return user_prefs or { [false] = { default = global_default_policy } }; | 28 return user_prefs or { [false] = global_default_policy }; |
29 end | 29 end |
30 local function set_prefs(user, user_prefs) | 30 local function set_prefs(user, user_prefs) |
31 local user_sessions = sessions[user]; | 31 local user_sessions = sessions[user]; |
32 if user_sessions then | 32 if user_sessions then |
33 user_sessions.archive_prefs = user_prefs; | 33 user_sessions.archive_prefs = user_prefs; |