mod_mam_muc/mod_mam_muc.lua
changeset 1277 999891a9ae5d
parent 1276 01dfaf2f2782
child 1278 40f077b18dfe
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);