# HG changeset patch # User Kim Alvefur # Date 1487062319 -3600 # Node ID 04064f01df0e8adc6db2218c1a418d0f761dec88 # Parent ec046f91550629ba54a4e4e9ffcc743df2358194 mod_mam_muc: Make sure that the total, if it is a total, is a number diff -r ec046f915506 -r 04064f01df0e mod_mam_muc/mod_mam_muc.lua --- a/mod_mam_muc/mod_mam_muc.lua Tue Feb 14 09:51:22 2017 +0100 +++ b/mod_mam_muc/mod_mam_muc.lua Tue Feb 14 09:51:59 2017 +0100 @@ -217,7 +217,7 @@ origin.send(st.error_reply(stanza, "cancel", "internal-server-error")); return true; end - local total = err; + local total = tonumber(err); origin.send(st.reply(stanza)) local msg_reply_attr = { to = stanza.attr.from, from = stanza.attr.to };