Commit 69a29ff6 authored by nobelium's avatar nobelium

OF-822: Disco request of a Non-occupant in MUC should result in bad-request

parent 8bc8c539
......@@ -380,7 +380,10 @@ public class LocalMUCUser implements MUCUser {
else {
MUCRole role = roles.get(group);
if (role == null) {
sendErrorPacket(packet, PacketError.Condition.not_authorized);
// If a non-occupant sends a disco to an address of the form <room@service/nick>,
// a MUC service MUST return a <bad-request/> error.
// http://xmpp.org/extensions/xep-0045.html#disco-occupant
sendErrorPacket(packet, PacketError.Condition.bad_request);
}
else if (IQ.Type.result == packet.getType()
|| IQ.Type.error == packet.getType()) {
......
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