aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/muc.lib.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 5debb4a3..f1e42d36 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -238,11 +238,11 @@ module:hook("muc-get-history", function(event)
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
}