changeset 8031 | adfc7f3b29ce |
parent 8030 | c2e7dfd87abb |
child 8782 | 11b4ae162db7 |
--- 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