Software /
code /
prosody
Changeset
11976:10cdfb94f1cc
mod_smacks: Remove dead legacy code for 0.10
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 01 Dec 2021 15:27:55 +0100 |
parents | 11975:fcea4d9e7502 |
children | 11977:9f7a6f7d13de |
files | plugins/mod_smacks.lua |
diffstat | 1 files changed, 0 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_smacks.lua Wed Dec 01 15:09:11 2021 +0100 +++ b/plugins/mod_smacks.lua Wed Dec 01 15:27:55 2021 +0100 @@ -51,23 +51,6 @@ local c2s_sessions = module:shared("/*/c2s/sessions"); local function init_session_cache(max_entries, evict_callback) - -- old prosody version < 0.10 (no limiting at all!) - if not cache then - local store = {}; - return { - get = function(user, key) - if not user then return nil; end - if not key then return nil; end - return store[key]; - end; - set = function(user, key, value) - if not user then return nil; end - if not key then return nil; end - store[key] = value; - end; - }; - end - -- use per user limited cache for prosody >= 0.10 local stores = {}; return {