# HG changeset patch # User Kim Alvefur # Date 1482419799 -3600 # Node ID e5795f5f7a7b150ab9b1da587aa0683cb396a237 # Parent deedb77c4f9668a5937a41865ae33c4919c5f869 mod_mam_muc: More room JID variable renaming for more consistency diff -r deedb77c4f96 -r e5795f5f7a7b mod_mam_muc/mod_mam_muc.lua --- a/mod_mam_muc/mod_mam_muc.lua Thu Dec 22 13:40:24 2016 +0100 +++ b/mod_mam_muc/mod_mam_muc.lua Thu Dec 22 16:16:39 2016 +0100 @@ -354,7 +354,7 @@ -- Handle messages function save_to_history(self, stanza) - local room = jid_split(self.jid); + local room_node = jid_split(self.jid); -- Policy check if not logging_enabled(self) then return end -- Don't log @@ -364,7 +364,7 @@ if stanza.attr.type then with = with .. "<" .. stanza.attr.type end - archive:append(room, nil, stanza, time_now(), with); + archive:append(room_node, nil, stanza, time_now(), with); end module:hook("muc-broadcast-message", function (event) @@ -384,8 +384,8 @@ end module:hook("muc-room-destroyed", function(event) - local username = jid_split(event.room.jid); - archive:delete(username); + local room_node = jid_split(event.room.jid); + archive:delete(room_node); end); -- TODO should we perhaps log presence as well?