diff options
author | daurnimator <quae@daurnimator.com> | 2014-09-26 17:33:38 -0400 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2014-09-26 17:33:38 -0400 |
commit | ad68aafea58bed22d625d9a815dc4f17c79055d8 (patch) | |
tree | 94253ada45bbae9d898e7a38b0de29477e3f60c9 /plugins/muc/muc.lib.lua | |
parent | 2555160000acd09e6b0a13f93d98bfd77e8a7ce5 (diff) | |
download | prosody-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.lua | 2 |
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 |