Software /
code /
prosody
Changeset
9239:03e37f7d6c97
MUC: Add some comments for clarity
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 03 Sep 2018 12:19:42 +0100 |
parents | 9238:0c1a1172d942 |
children | 9240:f9a83aca4421 |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Mon Sep 03 12:19:20 2018 +0100 +++ b/plugins/muc/muc.lib.lua Mon Sep 03 12:19:42 2018 +0100 @@ -70,6 +70,7 @@ return occupant; end +-- nick is in the form of an in-room JID function room_mt:get_occupant_by_nick(nick) local occupant = self._occupants[nick]; if occupant == nil then return nil end @@ -1450,8 +1451,10 @@ room._affiliation_data = frozen._affiliation_data; if frozen.jid and frozen._affiliations then + -- Old storage format room._affiliations = frozen._affiliations; else + -- New storage format for jid, data in pairs(frozen) do local node, host, resource = jid_split(jid); if host:sub(1,1) ~= "_" and not resource and type(data) == "string" then