changeset 11984 | a91494a4c3d0 |
parent 11983 | 705c4c07a860 |
child 11985 | 5d8264f464a2 |
--- a/plugins/mod_smacks.lua Wed Dec 01 21:04:32 2021 +0100 +++ b/plugins/mod_smacks.lua Wed Dec 01 23:03:11 2021 +0100 @@ -70,7 +70,7 @@ 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