Software /
code /
prosody-modules
Diff
mod_mam_muc/mod_mam_muc.lua @ 2723:ec02ee02a04b
mod_mam_muc: Handle missing maxstanzas (thanks Martin)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 23 Jun 2017 16:03:11 +0200 |
parent | 2722:e32bf5e19acd |
child | 2831:d65868fed77a |
line wrap: on
line diff
--- 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;