Commit 12de52b9 authored by Chinmay Dani's avatar Chinmay Dani Committed by Dave Cridland

OF-1240 Disallow empty nicknames in rooms with reserved nicknames

parent 7a1d02a5
......@@ -1620,6 +1620,8 @@ public class LocalMUCRoom implements MUCRoom, GroupEventListener {
if (!nickname.equals(members.get(bareJID))) {
throw new ConflictException();
}
} else if (isLoginRestrictedToNickname() && (nickname == null || nickname.trim().length() == 0)) {
throw new ConflictException();
}
// Check that the room always has an owner
if (owners.contains(bareJID) && owners.size() == 1) {
......
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