aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commitc83e3a24ae55f509d17571a90f7397b1274808ff (patch)
treea9f515de0a474035cdd20b5a68e28078ca09bb1d /plugins
parentbfaae84321dda02b19b483068379d044ecb0c7a6 (diff)
downloadprosody-c83e3a24ae55f509d17571a90f7397b1274808ff.tar.gz
prosody-c83e3a24ae55f509d17571a90f7397b1274808ff.zip
mod_muc/muc.lib: Fix parameters to send_history() (thanks Peter Villeneuve)
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
}