aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-04-01 16:03:37 +0200
committerKim Alvefur <zash@zash.se>2017-04-01 16:03:37 +0200
commitf5870a4c795d56a3168b68e39071a0dfa6c1704d (patch)
tree0c1b14b1e63b17e63d50102cc47286be2d5f66fe
parent31809432304bae1e1868a2872257d73e6d071123 (diff)
downloadprosody-f5870a4c795d56a3168b68e39071a0dfa6c1704d.tar.gz
prosody-f5870a4c795d56a3168b68e39071a0dfa6c1704d.zip
MUC: Include original stanza in send history event
-rw-r--r--plugins/muc/history.lib.lua1
1 files changed, 1 insertions, 0 deletions
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