Changeset

8028:adfc7f3b29ce

MUC: Include original stanza in send history event
author Kim Alvefur <zash@zash.se>
date Sat, 01 Apr 2017 16:03:37 +0200
parents 8027:c2e7dfd87abb
children 8039:1f4bd8009961
files plugins/muc/history.lib.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/history.lib.lua	Sat Apr 01 16:02:57 2017 +0200
+++ b/plugins/muc/history.lib.lua	Sat Apr 01 16:03:37 2017 +0200
@@ -120,6 +120,7 @@
 	local maxchars, maxstanzas, since = parse_history(stanza);
 	local event = {
 		room = room;
+		stanza = stanza;
 		to = stanza.attr.from; -- `to` is required to calculate the character count for `maxchars`
 		maxchars = maxchars, maxstanzas = maxstanzas, since = since;
 		next_stanza = function() end; -- events should define this iterator