Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 4428:0317b01b6bcd
Merge with Florob
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 26 Nov 2011 03:50:51 +0000 |
parent | 4424:1cbf3744300c |
child | 4528:875b90d5ce0f |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Sun Nov 06 18:23:16 2011 +0100 +++ b/plugins/muc/muc.lib.lua Sat Nov 26 03:50:51 2011 +0000 @@ -358,6 +358,7 @@ elseif type == "unavailable" then -- unavailable if current_nick then log("debug", "%s leaving %s", current_nick, room); + self._jid_nick[from] = nil; local occupant = self._occupants[current_nick]; local new_jid = next(occupant.sessions); if new_jid == from then new_jid = next(occupant.sessions, new_jid); end @@ -382,7 +383,6 @@ self:broadcast_presence(pr, from); self._occupants[current_nick] = nil; end - self._jid_nick[from] = nil; end elseif not type then -- available if current_nick then