aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-20 20:24:17 +0100
committerKim Alvefur <zash@zash.se>2019-01-20 20:24:17 +0100
commit88568a7af092d21061020932dd3ed7cfb0113c15 (patch)
tree6f4f343b5f4a6f7c42a7e2b62cfa35a437a77865
parent31b4e3c296e8555e2c73824a29a73d92027e3952 (diff)
downloadprosody-88568a7af092d21061020932dd3ed7cfb0113c15.tar.gz
prosody-88568a7af092d21061020932dd3ed7cfb0113c15.zip
mod_mam: Fix operator precedence (thanks mimi89999)
-rw-r--r--plugins/mod_mam/mod_mam.lua2
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);