diff options
author | Matthew Wild <mwild1@gmail.com> | 2014-05-10 21:30:00 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2014-05-10 21:30:00 +0100 |
commit | e8fdae76775a0c767f3cd2efabc2ce52cf511b0a (patch) | |
tree | a9f515de0a474035cdd20b5a68e28078ca09bb1d /plugins | |
parent | 2a6f4e9edec2400ad91ecec8a75b9ec70c305654 (diff) | |
download | prosody-e8fdae76775a0c767f3cd2efabc2ce52cf511b0a.tar.gz prosody-e8fdae76775a0c767f3cd2efabc2ce52cf511b0a.zip |
mod_muc/muc.lib: Fix parameters to send_history() (thanks Peter Villeneuve)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/muc/muc.lib.lua | 4 |
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 } |