# HG changeset patch # User Kim Alvefur # Date 1491055417 -7200 # Node ID adfc7f3b29ce6241005798c40a272b2ae57e1e4c # Parent c2e7dfd87abb25c0c33f4af7da26394d5d391a2b MUC: Include original stanza in send history event diff -r c2e7dfd87abb -r adfc7f3b29ce plugins/muc/history.lib.lua --- 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