mod_mam_muc: Handle missing maxstanzas (thanks Martin)

Fri, 23 Jun 2017 16:03:11 +0200

author
Kim Alvefur <zash@zash.se>
date
Fri, 23 Jun 2017 16:03:11 +0200
changeset 2723
ec02ee02a04b
parent 2722
e32bf5e19acd
child 2724
9f17d0f28d77

mod_mam_muc: Handle missing maxstanzas (thanks Martin)

mod_mam_muc/mod_mam_muc.lua file | annotate | diff | comparison | revisions
--- 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;

mercurial