Software /
code /
prosody
Diff
plugins/muc/history.lib.lua @ 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 |
parent | 8027:c2e7dfd87abb |
child | 8779:11b4ae162db7 |
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