Software /
code /
prosody-modules
Comparison
mod_mam_muc/mod_mam_muc.lua @ 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 |
parent | 1143:8098683b6d6f |
child | 1145:5a00f9bec6e7 |
comparison
equal
deleted
inserted
replaced
1143:8098683b6d6f | 1144:ccb0c5afe658 |
---|---|
58 | 58 |
59 | 59 |
60 -- Handle archive queries | 60 -- Handle archive queries |
61 module:hook("iq-get/bare/"..xmlns_mam..":query", function(event) | 61 module:hook("iq-get/bare/"..xmlns_mam..":query", function(event) |
62 local origin, stanza = event.origin, event.stanza; | 62 local origin, stanza = event.origin, event.stanza; |
63 local room = jid_split(stanza.attr.to); | 63 local room = stanza.attr.to; |
64 local query = stanza.tags[1]; | 64 local query = stanza.tags[1]; |
65 | 65 |
66 local room_obj = rooms[room]; | 66 local room_obj = rooms[room]; |
67 if not room_obj then | 67 if not room_obj then |
68 return -- FIXME not found | 68 return -- FIXME not found |