aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-11-26 03:50:51 +0000
committerMatthew Wild <mwild1@gmail.com>2011-11-26 03:50:51 +0000
commitaa93f9a29b0b01cc2a61a55d3b643a7a4ea2bcfb (patch)
tree698c76c3ae165952fc7ebd04837829ce11d24b96 /plugins
parent400449ed020462fe86f61d30b5ea7d79e76accca (diff)
parentc2409b3604775f62a3f251d673bb85f138a9a95c (diff)
downloadprosody-aa93f9a29b0b01cc2a61a55d3b643a7a4ea2bcfb.tar.gz
prosody-aa93f9a29b0b01cc2a61a55d3b643a7a4ea2bcfb.zip
Merge with Florob
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 8e05bbb4..731f9e37 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -358,6 +358,7 @@ function room_mt:handle_to_occupant(origin, stanza) -- PM, vCards, etc
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 @@ function room_mt:handle_to_occupant(origin, stanza) -- PM, vCards, etc
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