comparison mod_mam_muc/mod_mam_muc.lua @ 2177:530feb0e23ff

mod_mam_muc: Fix order of arguments for archive API
author Kim Alvefur <zash@zash.se>
date Sun, 22 May 2016 00:00:46 +0200
parents f21147d56bc4
children 24c9c0255235
comparison
equal deleted inserted replaced
2176:b76b062e77db 2177:530feb0e23ff
364 -- And stash it 364 -- And stash it
365 local with = stanza.name 365 local with = stanza.name
366 if stanza.attr.type then 366 if stanza.attr.type then
367 with = with .. "<" .. stanza.attr.type 367 with = with .. "<" .. stanza.attr.type
368 end 368 end
369 archive:append(room, nil, time_now(), with, stanza); 369 archive:append(room, stanza, nil, time_now(), with);
370 end 370 end
371 371
372 module:hook("muc-broadcast-message", function (event) 372 module:hook("muc-broadcast-message", function (event)
373 local room, stanza = event.room, event.stanza; 373 local room, stanza = event.room, event.stanza;
374 if stanza:get_child("body") then 374 if stanza:get_child("body") then