diff options
author | Kim Alvefur <zash@zash.se> | 2019-01-20 20:24:17 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-01-20 20:24:17 +0100 |
commit | de09c462e53b412b30463d55400328b4316a4c45 (patch) | |
tree | 6f4f343b5f4a6f7c42a7e2b62cfa35a437a77865 /plugins | |
parent | 0e589d1c0be63dc435d398854c8b58b670f49501 (diff) | |
download | prosody-de09c462e53b412b30463d55400328b4316a4c45.tar.gz prosody-de09c462e53b412b30463d55400328b4316a4c45.zip |
mod_mam: Fix operator precedence (thanks mimi89999)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_mam/mod_mam.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index d2ca709b..67bf177e 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -378,7 +378,7 @@ if cleanup_after ~= "never" then local ok, err = archive:delete(user, { ["end"] = os.time() - cleanup_after; }) if ok then num_users = num_users + 1; - sum = sum + tonumber(ok) or 0; + sum = sum + (tonumber(ok) or 0); end end module:log("info", "Deleted %d expired messages for %d users", sum, num_users); |