# HG changeset patch # User Matthew Wild # Date 1399753800 -3600 # Node ID e12b13a4687845a202b7fdbac2ea038d485e3a41 # Parent b8a1143c8851c70f563930bec52f250f3b82595c mod_muc/muc.lib: Fix parameters to send_history() (thanks Peter Villeneuve) diff -r b8a1143c8851 -r e12b13a46878 plugins/muc/muc.lib.lua --- 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 }