Send a packet to a room from LocalMUCUser.java

Hi,

When a user create a new room ( line 359 in LocalMUCUser.java), i want to send a presence or iq (doesn’t matter) packet to another room. I can get the room with the following line that i will send the packet

MUCRoom parentZoneRoom = server.getChatRoom(zone);

but i can not send a packet to this room. I think, parentZoneRoom.send(packet) is supposed to send my packet. How can i do that? I don’t get any error also.

Thanks,

My packet was blocked by a lot of permissions and role check. Here is the solution.

for(MUCRole occupant : parentZoneRoom.getOccupants()) {
     occupant.send(packet);
}

thanks anyway,