Examples of rewritesDuplicateNick()


Examples of org.apache.vysper.xmpp.modules.extension.xep0045_muc.model.Room.rewritesDuplicateNick()

            boolean nickConflict = room.isInRoom(nick);
            boolean nickRewritten = false;
            int counter = 1; // max conflicts, to avoid DoS attacks
            String rewrittenNick = null;
            while (nickConflict && counter < 100 && room.rewritesDuplicateNick()) {
                rewrittenNick = nick + "_" + counter;
                nickConflict = room.isInRoom(rewrittenNick);
                if (nickConflict) {
                    counter++;
                } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.