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
commite8b2d9e21f41b2253cbe594bdbc42b2d48ca11cf (patch)
tree0c1b14b1e63b17e63d50102cc47286be2d5f66fe
parent33e17c655492f02a9d0ac50299c22f4a692c5d4b (diff)
downloadprosody-e8b2d9e21f41b2253cbe594bdbc42b2d48ca11cf.tar.gz
prosody-e8b2d9e21f41b2253cbe594bdbc42b2d48ca11cf.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