aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2014-05-10 21:30:00 +0100
committerMatthew Wild <mwild1@gmail.com>2014-05-10 21:30:00 +0100
commite8fdae76775a0c767f3cd2efabc2ce52cf511b0a (patch)
treea9f515de0a474035cdd20b5a68e28078ca09bb1d /plugins/muc
parent2a6f4e9edec2400ad91ecec8a75b9ec70c305654 (diff)
downloadprosody-e8fdae76775a0c767f3cd2efabc2ce52cf511b0a.tar.gz
prosody-e8fdae76775a0c767f3cd2efabc2ce52cf511b0a.zip
mod_muc/muc.lib: Fix parameters to send_history() (thanks Peter Villeneuve)
Diffstat (limited to 'plugins/muc')
-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
}