Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 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 |
parent | 6144:cb08bba0443a |
child | 6233:f400a4cdf352 |
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 }