author | Kim Alvefur <zash@zash.se> |
Sat, 01 Apr 2017 16:03:37 +0200 | |
changeset 8031 | adfc7f3b29ce |
parent 8030 | c2e7dfd87abb |
child 8042 | 1f4bd8009961 |
--- 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