Mercurial > prosody-modules
comparison mod_mam_muc/mod_mam_muc.lua @ 1540:0c26b1638f8c
call archive API with username only
author | Stuart Carnie <stuart.carnie@gmail.com> |
---|---|
date | Tue, 28 Oct 2014 15:25:32 -0700 |
parents | 4fb280768efc |
children | ef032840bc92 |
comparison
equal
deleted
inserted
replaced
1539:05fa54404012 | 1540:0c26b1638f8c |
---|---|
288 end | 288 end |
289 archive:append(room, nil, time_now(), with, stanza); | 289 archive:append(room, nil, time_now(), with, stanza); |
290 end | 290 end |
291 | 291 |
292 module:hook("muc-room-destroyed", function(event) | 292 module:hook("muc-room-destroyed", function(event) |
293 archive:delete(jid_split(event.room.jid)); | 293 local username = jid_split(event.room.jid); |
294 archive:delete(username); | |
294 end); | 295 end); |
295 | 296 |
296 -- TODO should we perhaps log presence as well? | 297 -- TODO should we perhaps log presence as well? |
297 -- And role/affiliation changes? | 298 -- And role/affiliation changes? |
298 | 299 |