aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit43ce26e2f4ad2a72039fa6e169a0aaed64199315 (patch)
tree94253ada45bbae9d898e7a38b0de29477e3f60c9 /plugins
parent86ecafd352319cb4467fd289cc8f3bd503356282 (diff)
downloadprosody-43ce26e2f4ad2a72039fa6e169a0aaed64199315.tar.gz
prosody-43ce26e2f4ad2a72039fa6e169a0aaed64199315.zip
plugins/muc/muc.lib: Use occupants iterator instead of assuming pairs
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 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