if ((this.getFromUserListByName(paramName) == null) && (this.numCurrentUsers < this.maxUsers)) { User tmpUser = new User(paramName, "guest", true, false, this); tmpUser.setAllowedChannelList(this.channelAdministration.getFreeForGuestEnum()); tmpUser.setIsLoggedIn(true); this.addToUserList(tmpUser); return tmpUser;
if (paramName != null) { if ((this.getFromUserListByName(paramName) == null) && (this.numCurrentUsers < this.maxUsers)) { User tmpUser = new User(paramName, "guest", true, false, this); tmpUser.setAllowedChannelList(this.channelAdministration.getFreeForGuestEnum()); tmpUser.setIsLoggedIn(true); this.addToUserList(tmpUser); return tmpUser; } else { Debug.println("guestname " + paramName + " login failed"); return null; }
    public synchronized User loginGuest(String paramName) {        if ((this.getFromUserListByName(paramName) == null) && (this.numCurrentUsers < this.maxUsers)) {            User tmpUser = new User(paramName, "guest", true, false, this);            tmpUser.setAllowedChannelList(this.channelAdministration.getFreeForGuestEnum());            tmpUser.setIsLoggedIn(true);            this.addToUserList(tmpUser);            return tmpUser;        }        else {            Debug.println("guestname " + paramName + " login failed");            return null;        }    }