Mercurial > prosody-modules
comparison 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 |
parents | e32bf5e19acd |
children | d65868fed77a |
comparison
equal
deleted
inserted
replaced
2722:e32bf5e19acd | 2723:ec02ee02a04b |
---|---|
293 | 293 |
294 module:hook("muc-get-history", function (event) | 294 module:hook("muc-get-history", function (event) |
295 local room = event.room; | 295 local room = event.room; |
296 if not archiving_enabled(room) then return end | 296 if not archiving_enabled(room) then return end |
297 local room_jid = room.jid; | 297 local room_jid = room.jid; |
298 local maxstanzas = event.maxstanzas; | 298 local maxstanzas = event.maxstanzas or math.huge; |
299 local maxchars = event.maxchars; | 299 local maxchars = event.maxchars; |
300 local since = event.since; | 300 local since = event.since; |
301 local to = event.to; | 301 local to = event.to; |
302 | 302 |
303 -- Load all the data! | 303 -- Load all the data! |