comparison mod_mam_muc/mod_mam_muc.lua @ 2178:24c9c0255235

mod_mam_muc: Fix previous commit
author Kim Alvefur <zash@zash.se>
date Sun, 22 May 2016 00:06:21 +0200
parents 530feb0e23ff
children 97b4229982f5
comparison
equal deleted inserted replaced
2177:530feb0e23ff 2178:24c9c0255235
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, stanza, nil, time_now(), with); 369 archive:append(room, nil, stanza, 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