Changeset

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 2722:e32bf5e19acd
children 2724:9f17d0f28d77
files mod_mam_muc/mod_mam_muc.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;