Software /
code /
prosody-modules
Comparison
mod_mam_muc/mod_mam_muc.lua @ 1277:999891a9ae5d
mod_mam_muc: Remove archives when a room is destroyed
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 18 Jan 2014 21:07:12 +0100 |
parent | 1276:01dfaf2f2782 |
child | 1278:40f077b18dfe |
comparison
equal
deleted
inserted
replaced
1276:01dfaf2f2782 | 1277:999891a9ae5d |
---|---|
182 end | 182 end |
183 end | 183 end |
184 | 184 |
185 module:hook("message/bare", message_handler, 2); | 185 module:hook("message/bare", message_handler, 2); |
186 | 186 |
187 module:hook("muc-room-destroyed", function(event) | |
188 archive:delete(jid_split(event.room.jid)); | |
189 end); | |
190 | |
187 -- TODO should we perhaps log presence as well? | 191 -- TODO should we perhaps log presence as well? |
188 -- And role/affiliation changes? | 192 -- And role/affiliation changes? |
189 | 193 |
190 module:add_feature(xmlns_mam); | 194 module:add_feature(xmlns_mam); |