Commit 89c34392 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Modified methods that were receiveing an Iterator to receive a Collection.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@496 b35dd754-fafc-0310-a699-88a17e54d16e
parent 80ce9b52
......@@ -769,11 +769,9 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha
// Answer the room occupants as items if that info is publicly available
MUCRoom room = getChatRoom(name);
if (room != null && room.isPublicRoom()) {
MUCRole role;
Element item;
for (Iterator<MUCRole> members = room.getOccupants(); members.hasNext();) {
for (MUCRole role : room.getOccupants()) {
// TODO Should we filter occupants that are invisible (presence is not broadcasted)?
role = members.next();
item = DocumentHelper.createElement("item");
item.addAttribute("jid", role.getRoleAddress().toStringPrep());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment