From e8b2d9e21f41b2253cbe594bdbc42b2d48ca11cf Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 1 Apr 2017 16:03:37 +0200 Subject: MUC: Include original stanza in send history event --- plugins/muc/history.lib.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/muc/history.lib.lua') diff --git a/plugins/muc/history.lib.lua b/plugins/muc/history.lib.lua index 487aebc6..e467ae32 100644 --- a/plugins/muc/history.lib.lua +++ b/plugins/muc/history.lib.lua @@ -120,6 +120,7 @@ local function send_history(room, stanza) 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 -- cgit v1.2.3