aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-09-26 17:33:38 -0400
committerdaurnimator <quae@daurnimator.com>2014-09-26 17:33:38 -0400
commitad68aafea58bed22d625d9a815dc4f17c79055d8 (patch)
tree94253ada45bbae9d898e7a38b0de29477e3f60c9 /plugins/muc/muc.lib.lua
parent2555160000acd09e6b0a13f93d98bfd77e8a7ce5 (diff)
downloadprosody-ad68aafea58bed22d625d9a815dc4f17c79055d8.tar.gz
prosody-ad68aafea58bed22d625d9a815dc4f17c79055d8.zip
plugins/muc/muc.lib: Use occupants iterator instead of assuming pairs
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-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 99d0ad07..ad3800a7 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -96,7 +96,7 @@ function room_mt:save_occupant(occupant)
-- Need to maintain _jid_nick secondary index
local old_occupant = self._occupants[id];
if old_occupant then
- for real_jid in pairs(old_occupant.sessions) do
+ for real_jid in old_occupant:each_session() do
self._jid_nick[real_jid] = nil;
end
end