if (role.getChatRoom().getRoomHistory().isSubjectChangeRequest(packet)) { role.getChatRoom().changeSubject(packet, role); role.getChatRoom().sendPublicMessage(packet, role); role.getChatRoom().sendPrivatePacket(packet, role); LocalMUCRoom room = (LocalMUCRoom) role.getChatRoom(); if (userInfo != null && userInfo.element("invite") != null) {
try { role.getChatRoom().sendPrivatePacket(packet, role); if (query != null && "http://jabber.org/protocol/muc#owner".equals(query.getNamespaceURI())) { role.getChatRoom().getIQOwnerHandler().handleIQ(packet, role); role.getChatRoom().getIQAdminHandler().handleIQ(packet, role); role.getChatRoom().sendPrivatePacket( packet, role );
role.getChatRoom().leaveRoom(role); || role.getNickname().equalsIgnoreCase(resource)) { role.getChatRoom().presenceUpdated(role, packet); if (role.getChatRoom().getOccupantsByBareJID(packet.getFrom().asBareJID()).size() > 1) { sendErrorPacket(packet, PacketError.Condition.not_acceptable); else if (!role.getChatRoom().canChangeNickname()) { sendErrorPacket(packet, PacketError.Condition.not_acceptable); else if (role.getChatRoom().hasOccupant(resource)) { sendErrorPacket(packet, PacketError.Condition.conflict); frag.element("item").addAttribute("nick", resource); frag.addElement("status").addAttribute("code", "303"); role.getChatRoom().send(presence); role.getChatRoom().nicknameChanged(role, packet, oldNick, resource);
if (role.getChatRoom().getRoomHistory().isSubjectChangeRequest(packet)) { role.getChatRoom().changeSubject(packet, role); role.getChatRoom().sendPublicMessage(packet, role); role.getChatRoom().sendPrivatePacket(packet, role); LocalMUCRoom room = (LocalMUCRoom) role.getChatRoom(); if (userInfo != null && userInfo.element("invite") != null) {
try { role.getChatRoom().sendPrivatePacket(packet, role); if (query != null && "http://jabber.org/protocol/muc#owner".equals(query.getNamespaceURI())) { role.getChatRoom().getIQOwnerHandler().handleIQ(packet, role); role.getChatRoom().getIQAdminHandler().handleIQ(packet, role); role.getChatRoom().sendPrivatePacket(packet, role);
role.getChatRoom().leaveRoom(role); || role.getNickname().equalsIgnoreCase(resource)) { role.getChatRoom().presenceUpdated(role, packet); if (role.getChatRoom().getOccupantsByBareJID(packet.getFrom().asBareJID()).size() > 1) { sendErrorPacket(packet, PacketError.Condition.not_acceptable); else if (!role.getChatRoom().canChangeNickname()) { sendErrorPacket(packet, PacketError.Condition.not_acceptable); else if (role.getChatRoom().hasOccupant(resource)) { sendErrorPacket(packet, PacketError.Condition.conflict); frag.element("item").addAttribute("nick", resource); frag.addElement("status").addAttribute("code", "303"); role.getChatRoom().send(presence); role.getChatRoom().nicknameChanged(role, packet, oldNick, resource);