changeset 1144:ccb0c5afe658

mod_mam_muc: Fix room lookup, should be indexed by bare jid
author Kim Alvefur <zash@zash.se>
date Sat, 10 Aug 2013 21:31:51 +0200
parents 8098683b6d6f
children 5a00f9bec6e7
files mod_mam_muc/mod_mam_muc.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_mam_muc/mod_mam_muc.lua	Sat Aug 10 21:18:25 2013 +0200
+++ b/mod_mam_muc/mod_mam_muc.lua	Sat Aug 10 21:31:51 2013 +0200
@@ -60,7 +60,7 @@
 -- Handle archive queries
 module:hook("iq-get/bare/"..xmlns_mam..":query", function(event)
 	local origin, stanza = event.origin, event.stanza;
-	local room = jid_split(stanza.attr.to);
+	local room = stanza.attr.to;
 	local query = stanza.tags[1];
 
 	local room_obj = rooms[room];