Changeset

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 1539:05fa54404012
children 1541:ef032840bc92
files mod_mam_muc/mod_mam_muc.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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?