Diff

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
parent 1536:4fb280768efc
child 1541:ef032840bc92
line wrap: on
line diff
--- a/mod_mam_muc/mod_mam_muc.lua	Tue Oct 28 22:26:41 2014 +0100
+++ b/mod_mam_muc/mod_mam_muc.lua	Tue Oct 28 15:25:32 2014 -0700
@@ -290,7 +290,8 @@
 end
 
 module:hook("muc-room-destroyed", function(event)
-	archive:delete(jid_split(event.room.jid));
+	local username = jid_split(event.room.jid);
+	archive:delete(username);
 end);
 
 -- TODO should we perhaps log presence as well?