mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
mod_mam: Fix operator precedence (thanks mimi89999)
This commit is contained in:
parent
0e589d1c0b
commit
de09c462e5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue