# HG changeset patch # User Kim Alvefur # Date 1498226591 -7200 # Node ID ec02ee02a04bf024b00b5fbb39eff0373668b286 # Parent e32bf5e19acd97b3167c660524c72f4061ca0ada mod_mam_muc: Handle missing maxstanzas (thanks Martin) diff -r e32bf5e19acd -r ec02ee02a04b mod_mam_muc/mod_mam_muc.lua --- a/mod_mam_muc/mod_mam_muc.lua Fri Jun 23 15:31:55 2017 +0200 +++ b/mod_mam_muc/mod_mam_muc.lua Fri Jun 23 16:03:11 2017 +0200 @@ -295,7 +295,7 @@ local room = event.room; if not archiving_enabled(room) then return end local room_jid = room.jid; - local maxstanzas = event.maxstanzas; + local maxstanzas = event.maxstanzas or math.huge; local maxchars = event.maxchars; local since = event.since; local to = event.to;