diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_smacks.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua index f6fecdb2..53ef87b3 100644 --- a/plugins/mod_smacks.lua +++ b/plugins/mod_smacks.lua @@ -70,7 +70,7 @@ local function init_session_cache(max_entries, evict_callback) if not stores[user] then stores[user] = cache.new(max_entries, evict_callback); end stores[user]:set(key, value); -- remove empty caches completely - if not stores[user]:count() then stores[user] = nil; end + if stores[user]:count() == 0 then stores[user] = nil; end end; }; end |