Software /
code /
prosody
Changeset
6178:e12b13a46878
mod_muc/muc.lib: Fix parameters to send_history() (thanks Peter Villeneuve)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 10 May 2014 21:30:00 +0100 |
parents | 6177:b8a1143c8851 |
children | 6233:f400a4cdf352 |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Mon May 12 01:18:27 2014 +0200 +++ b/plugins/muc/muc.lib.lua Sat May 10 21:30:00 2014 +0100 @@ -238,11 +238,11 @@ return true; end) -function room_mt:send_history(stanza) +function room_mt:send_history(to, stanza) local maxchars, maxstanzas, since = parse_history(stanza) local event = { room = self; - to = stanza.attr.from; -- `to` is required to calculate the character count for `maxchars` + to = to; -- `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 }